/* RatingWala Seller Dashboard Styles */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2b4c6f;
    --accent-color: #4a7ba7;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --sidebar-bg: #1a2332;
    --sidebar-hover: #2d3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ========================================
   Login & Registration Page
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.register-container {
    max-width: 1100px;
}

.login-box {
    padding: 50px 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.seller-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.seller-logo .logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.75rem;
}

.seller-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.features-list svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========================================
   Dashboard Layout
   ======================================== */
.seller-layout {
    display: block;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.seller-sidebar {
    background-color: var(--sidebar-bg);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
}

/* Custom scrollbar for sidebar */
.seller-sidebar::-webkit-scrollbar {
    width: 6px;
}

.seller-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.seller-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.seller-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-overlay {
    display: none;
}

.mobile-menu-btn {
    display: none;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.sidebar-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--white);
}

.menu-link.active {
    background-color: var(--sidebar-hover);
    color: var(--white);
    border-left: 3px solid var(--accent-color);
}

.menu-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.seller-main {
    background-color: var(--bg-light);
    overflow-y: auto;
    min-width: 0;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.seller-header {
    background-color: var(--white);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

.seller-content {
    padding: 30px;
}

/* ========================================
   Dashboard Components
   ======================================== */
.page-header {
    margin-bottom: 25px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .seller-layout {
        grid-template-columns: 1fr;
    }

    .seller-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .seller-sidebar.open {
        left: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .seller-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-light);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        margin-right: 15px;
    }

    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
        stroke: var(--text-dark);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .seller-header {
        padding: 15px 20px;
    }

    .seller-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px 25px;
    }

    .seller-header {
        flex-wrap: wrap;
    }

    .page-title {
        font-size: 1.5rem;
    }
}
