/* Seller Page Styles - Amazon.in Style */

:root {
    --primary-color: #232f3e;
    --accent-color: #ff9900;
    --accent-dark: #ff7700;
    --text-color: #232f3e;
    --text-secondary: #666;
    --border-color: #ddd;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
}

.seller-page-header {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.account-seller, .back-to-shop {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    font-size: 12px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.account-seller:hover, .back-to-shop:hover {
    opacity: 0.8;
}

.seller-main-content {
    min-height: calc(100vh - 150px);
    background-color: var(--bg-light);
}

/* Auth Page Styles */
.seller-auth-page {
    display: none;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1f2e 100%);
    min-height: calc(100vh - 150px);
}

.seller-auth-page.active {
    display: block;
}

.seller-auth-container {
    max-width: 420px;
    margin: 0 auto;
}

.seller-auth-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 26px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.seller-form {
    display: none;
}

.seller-form.active-form {
    display: block;
}

.seller-form h2 {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.seller-form .form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.seller-form .form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 12px;
}

.seller-form .form-group input,
.seller-form .form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.seller-form .form-group input:focus,
.seller-form .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 4px rgba(255, 153, 0, 0.2);
}

.form-toggle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 14px;
}

.form-toggle a {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.form-toggle a:hover {
    text-decoration: underline;
}

.auth-benefits {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.auth-benefits h3 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
}

.auth-benefits li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

/* Dashboard Page Styles */
.seller-dashboard-page {
    display: none;
    flex-direction: row;
    min-height: calc(100vh - 150px);
    background-color: var(--bg-light);
}

.seller-dashboard-page.active {
    display: flex;
}

.seller-sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: white;
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1f2e 100%);
}

.seller-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.seller-info {
    text-align: center;
    width: 100%;
}

.seller-info h3 {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.seller-info p {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    margin-bottom: 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 13px;
    border-left: 4px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-nav .nav-item.active {
    background-color: var(--accent-color);
    color: white;
    border-left-color: var(--accent-dark);
    font-weight: 600;
}

.sidebar-nav .nav-item span:first-child {
    font-size: 16px;
    min-width: 20px;
}

.logout-btn {
    width: calc(100% - 40px);
    margin: 15px 20px;
    background-color: #ff6b6b;
    color: white;
}

.logout-btn:hover {
    background-color: #ff5252;
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    background-color: var(--bg-light);
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.dashboard-tab {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.dashboard-tab.active {
    display: block;
}

.dashboard-tab h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.dashboard-tab h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: center;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    min-width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 119, 0, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-body {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.dashboard-section h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Products & Orders List */
.products-list, .orders-list {
    display: grid;
    gap: 12px;
}

.product-item, .order-item {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.product-item:hover, .order-item:hover {
    box-shadow: var(--shadow-hover);
}

.product-item-details {
    flex: 1;
}

.product-item-details h4 {
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.product-item-details p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.product-item-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.product-item-actions button {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.edit-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.edit-btn:hover {
    background-color: #1a1f2e;
    box-shadow: 0 2px 8px rgba(35, 47, 62, 0.2);
}

.delete-btn {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.delete-btn:hover {
    background-color: #ff5252;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

/* Product Form */
.product-form {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-form .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.product-form .form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 12px;
}

.product-form .form-group input,
.product-form .form-group select,
.product-form .form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.product-form .form-group input:focus,
.product-form .form-group select:focus,
.product-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 4px rgba(255, 153, 0, 0.2);
}

.product-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Analytics */
.analytics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.analytics-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.analytics-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.chart-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.05) 0%, rgba(255, 119, 0, 0.05) 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    border: 1px dashed var(--border-color);
}

/* Settings Form */
.settings-form {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
}

.settings-form .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.settings-form .form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 12px;
}

.settings-form .form-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.settings-form .form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 4px rgba(255, 153, 0, 0.2);
}

.settings-form .form-group input:readonly {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

/* Seller Buttons */
.seller-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-btn.primary {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    margin-top: 10px;
    border-color: var(--accent-color);
}

.seller-btn.primary:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.seller-btn.logout-btn {
    background-color: #ff6b6b;
    color: white;
}

.seller-btn.logout-btn:hover {
    background-color: #ff5252;
}

/* Footer */
.seller-footer {
    background-color: var(--primary-color);
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 11px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .seller-sidebar {
        width: 220px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .seller-sidebar {
        width: 180px;
    }

    .sidebar-header {
        padding: 15px 10px;
    }

    .seller-avatar {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 8px;
    }

    .seller-info h3 {
        font-size: 13px;
    }

    .sidebar-nav .nav-item {
        padding: 11px 10px;
        font-size: 12px;
        gap: 8px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-tab h2 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .seller-dashboard-page {
        flex-direction: column;
    }

    .seller-sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        padding: 0;
    }

    .sidebar-header {
        padding: 12px;
        flex-direction: row;
        gap: 12px;
    }

    .seller-avatar {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 0;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
        gap: 5px;
    }

    .sidebar-nav .nav-item {
        padding: 10px 6px;
        font-size: 11px;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }

    .sidebar-nav .nav-item span:first-child {
        font-size: 14px;
    }

    .logout-btn {
        grid-column: 1 / -1;
        width: calc(100% - 20px);
        margin: 10px;
    }

    .dashboard-content {
        padding: 10px;
        max-height: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }

    .stat-card {
        padding: 12px;
        gap: 8px;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
        min-width: 35px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .product-item-actions button {
        flex: 1;
    }

    .dashboard-tab h2 {
        font-size: 18px;
    }

    .analytics-container {
        grid-template-columns: 1fr;
    }

    .product-form, .settings-form {
        max-width: 100%;
        padding: 15px;
    }
}
