/* BANQUEEN.IN Retailer Portal Theme */
:root {
    --retailer-primary: #10b981;
    --retailer-primary-dark: #047857;
    --retailer-secondary: #059669;
    --retailer-accent: #34d399;
    --retailer-dark: #064e3b;
    --retailer-darker: #022c22;
    --retailer-light: #ecfdf5;
    --retailer-bg: #f8fafc;
    --retailer-card: rgba(255, 255, 255, 0.95);
    --retailer-glass: rgba(255, 255, 255, 0.1);
    --retailer-border: rgba(255, 255, 255, 0.18);
    --retailer-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --retailer-shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    --retailer-radius: 16px;
    --retailer-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--retailer-bg);
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--retailer-primary-dark);
}

a:hover {
    color: var(--retailer-primary);
}

/* Buttons */
.btn-retailer-primary {
    background: linear-gradient(135deg, var(--retailer-primary) 0%, var(--retailer-secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 50rem;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--retailer-transition);
}

.btn-retailer-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    color: #fff;
}

.btn-retailer-outline {
    border: 2px solid var(--retailer-primary);
    color: var(--retailer-primary);
    border-radius: 50rem;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--retailer-transition);
    background: transparent;
}

.btn-retailer-outline:hover {
    background: var(--retailer-primary);
    color: #fff;
}

.btn-retailer-light {
    background: rgba(16, 185, 129, 0.1);
    color: var(--retailer-primary-dark);
    border-radius: 50rem;
    border: none;
    font-weight: 500;
}

.btn-retailer-light:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Navbar */
.retailer-navbar {
    background: rgba(2, 44, 34, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--retailer-border);
    padding: 0.75rem 0;
    z-index: 1030;
}

.retailer-navbar .navbar-brand {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
}

.retailer-navbar .navbar-brand small {
    font-size: 0.65em;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: -4px;
    color: var(--retailer-accent);
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--retailer-primary), var(--retailer-accent));
    border-radius: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.retailer-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--retailer-transition);
}

.retailer-navbar .nav-link:hover {
    color: #fff !important;
}

/* Public Hero */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--retailer-darker) 0%, var(--retailer-dark) 50%, #065f46 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-section .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.hero-cta .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-stats {
    margin-top: 2.5rem;
}

.hero-stats .stat-item {
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 2rem;
}

.hero-stats .stat-item:last-child {
    border-right: none;
}

.hero-stats h3 {
    font-size: 2rem;
    color: var(--retailer-accent);
    margin-bottom: 0.2rem;
}

.hero-stats small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.hero-image-card {
    background: var(--retailer-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--retailer-border);
    border-radius: var(--retailer-radius);
    padding: 2rem;
    box-shadow: var(--retailer-shadow-lg);
}

/* Section headings */
.section-heading {
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--retailer-darker);
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: #6b7280;
    max-width: 600px;
}

.section-heading .heading-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--retailer-primary), var(--retailer-accent));
    border-radius: 2px;
    margin-top: 0.75rem;
}

/* Cards */
.retailer-card {
    background: var(--retailer-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--retailer-radius);
    padding: 1.75rem;
    box-shadow: var(--retailer-shadow);
    transition: var(--retailer-transition);
    height: 100%;
}

.retailer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--retailer-shadow-lg);
}

.retailer-card .card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.retailer-card .card-icon.green {
    background: var(--retailer-light);
    color: var(--retailer-primary-dark);
}

.retailer-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.retailer-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Steps */
.step-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--retailer-primary), var(--retailer-secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Commission table */
.commission-table {
    background: #fff;
    border-radius: var(--retailer-radius);
    overflow: hidden;
    box-shadow: var(--retailer-shadow);
}

.commission-table th {
    background: var(--retailer-darker);
    color: #fff;
    font-weight: 500;
}

/* Public footer */
.public-footer {
    background: var(--retailer-darker);
    color: #fff;
    padding: 60px 0 20px;
}

.public-footer h5,
.public-footer h6 {
    color: #fff;
    margin-bottom: 1.25rem;
}

.public-footer a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.public-footer a:hover {
    color: var(--retailer-accent);
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

.footer-brand small {
    font-size: 0.6em;
    display: block;
    margin-top: -4px;
    color: var(--retailer-accent);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* App Layout */
.app-body {
    background: var(--retailer-bg);
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: var(--retailer-transition);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand a {
    color: var(--retailer-darker);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.sidebar-brand small {
    font-size: 0.6em;
    display: block;
    margin-top: -3px;
    color: var(--retailer-primary);
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
}

.sidebar-user {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--retailer-light), #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #6b7280;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-info h6 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.sidebar-user-info small {
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    transition: var(--retailer-transition);
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--retailer-light);
    color: var(--retailer-primary-dark);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--retailer-light), #fff);
    border-left: 3px solid var(--retailer-primary);
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.app-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-topbar-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--retailer-darker);
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--retailer-darker);
    margin-right: 0.75rem;
}

.app-topbar-actions .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--retailer-bg);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.app-topbar-actions .btn-icon:hover {
    background: var(--retailer-light);
    color: var(--retailer-primary-dark);
}

.app-content {
    flex: 1;
    padding: 1.5rem;
}

.app-footer {
    margin-left: 260px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dashboard stats */
.stat-card {
    background: #fff;
    border-radius: var(--retailer-radius);
    padding: 1.25rem;
    box-shadow: var(--retailer-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--retailer-transition);
    border-left: 4px solid var(--retailer-primary);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--retailer-shadow-lg);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.primary { background: var(--retailer-light); color: var(--retailer-primary-dark); }
.stat-card .stat-icon.success { background: #d1fae5; color: #065f46; }
.stat-card .stat-icon.warning { background: #fef3c7; color: #92400e; }
.stat-card .stat-icon.info { background: #dbeafe; color: #1e40af; }

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    color: var(--retailer-darker);
}

.stat-card small {
    color: #6b7280;
}

/* Tables */
.retailer-table {
    background: #fff;
    border-radius: var(--retailer-radius);
    overflow: hidden;
    box-shadow: var(--retailer-shadow);
}

.retailer-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.retailer-table td {
    padding: 1rem;
    vertical-align: middle;
    color: #4b5563;
}

.retailer-table tbody tr:hover {
    background: #f9fafb;
}

/* Forms */
.form-control, .form-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: var(--retailer-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--retailer-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

.form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.input-group-text {
    background: var(--retailer-light);
    border-color: #e5e7eb;
    color: var(--retailer-primary-dark);
}

/* Auth forms */
.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--retailer-radius);
    box-shadow: var(--retailer-shadow-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--retailer-darker) 0%, var(--retailer-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 1rem 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-stats .stat-item {
        border-right: none;
        padding-right: 1rem;
        margin-right: 1rem;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .app-main,
    .app-footer {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1035;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .public-main {
        padding-top: 70px;
    }
}

@media (min-width: 992px) {
    .public-main {
        padding-top: 76px;
    }
}

/* Utility */
.text-retailer { color: var(--retailer-primary) !important; }
.bg-retailer { background-color: var(--retailer-primary) !important; }
.border-retailer { border-color: var(--retailer-primary) !important; }

.rounded-xl { border-radius: var(--retailer-radius) !important; }
.shadow-retailer { box-shadow: var(--retailer-shadow) !important; }
