@font-face {
    font-family: 'Test Sohne';
    src: url('../font-family/TestSohne-Leicht-BF663d89cd4952e.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Test Sohne';
    src: url('../font-family/TestSohne-Buch-BF663d89cd32e6a.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Test Sohne';
    src: url('../font-family/TestSohne-Kraftig-BF663d89cd37e26.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Test Sohne';
    src: url('../font-family/TestSohne-Halbfett-BF663d89cd2d67b.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Test Sohne';
    src: url('../font-family/TestSohne-Fett-BF663d89cca89ff.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary: #305ced;
    --primary-light: #527bf2;
    --primary-dark: #1e40bd;
    --bg-color: #f3f5f9;
    --text-dark: #333333;
    --text-muted: #8b92a5;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success: #10b981;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --sidebar-width: 260px;
    --header-height: 70px;
}

.header-left {
    display: flex;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Test Sohne', sans-serif;
}


body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(90deg, #050C9C 0%, #3572EF 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s;
    overflow-y: auto;
}

.bg-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: -1;
    object-fit: cover;
}

.sidebar::-webkit-scrollbar {
    width: 0;
}

.sidebar .logo-area {
    height: var(--header-height);
    padding: 0 30px;
}

.sidebar .logo-area i {
    margin-right: 10px;
    font-size: 28px;
}

.sidebar .nav-links {
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar .nav-links li {
    list-style: none;
    padding-right: 5px;
}

.sidebar .nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;

}

.sidebar .nav-links a:hover,
.sidebar .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
    border-right: 4px solid rgba(206, 208, 236, 1);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.sidebar .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-links a i {
    min-width: 30px;
    font-size: 18px;
}

.sidebar .logout-area {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logout-area a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar .logout-area a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .logout-area a i {
    min-width: 30px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s, width 0.3s;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-left .search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 8px 15px;
    width: 350px;
    border: 1px solid var(--border-color);
}

.header-left .search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-dark);
}

.header-left .search-bar i {
    color: var(--text-muted);
    font-size: 16px;
    margin-left: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

.notifications {
    position: relative;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.notifications .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-left: 1px solid var(--border-color);
    padding-left: 25px;
}

.user-profile .name {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dashboard Content */
.content-area {
    padding: 30px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-info .value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-info .trend {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-info .trend span {
    color: var(--success);
    font-weight: 600;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Tables Section */
.tables-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding-bottom: 15px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

table td {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid #f3f4f6;
}

table tr:last-child td {
    border-bottom: none;
}

.user-td {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-td img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-td .user-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-td .user-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-light {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #eef2ff;
    color: var(--primary);
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-light:hover {
    background-color: #e0e7ff;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dropdown-sm {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #f9fafb;
    font-size: 12px;
    color: var(--text-dark);
    outline: none;
}

.chart-legend {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chart-container {
    height: 300px;
    width: 100%;
    margin-top: 20px;
}

/* Sidebar Toggles */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    margin-right: 15px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

/* Desktop Toggled State */
body.sidebar-toggled .sidebar {
    transform: translateX(-100%);
}

body.sidebar-toggled .main-content {
    margin-left: 0;
    width: 100%;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

body.sidebar-toggled .sidebar-overlay {
    /* Overlay is for mobile only, don't show on desktop by default */
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tables-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 100;
        width: 250px;
    }

    .sidebar-close {
        display: block;
    }

    body.sidebar-toggled .sidebar {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    body.sidebar-toggled .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .content-area {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header {
        padding: 0 15px;
    }

    .header-left {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .header-left .search-bar {
        width: 100%;
        max-width: 200px;
    }

    .user-profile .name {
        display: none;
    }

    .user-profile {
        padding-left: 10px;
        gap: 0;
        border-left: none;
    }

    .header-right {
        gap: 15px;
    }

    .card {
        padding: 15px;
        overflow: auto;
    }

    .tables-grid {
        gap: 15px;
    }

    .charts-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-left .search-bar {
        display: none;
        /* Hide search bar on very small screens to save space */
    }

    .sidebar .logo-area {
        padding: 0px 10px;
    }

    .lang-selector {
        display: none;
    }

    .stat-info .value {
        font-size: 22px;
    }

    .card-title {
        font-size: 14px;
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 500px;
    /* Ensure table doesn't squash too much */
}

/* Affiliates Page Specific Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title-area h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.page-title-area p {
    color: var(--text-muted);
    font-size: 15px;
}

.btn-add-affiliate {
    background-color: #050C9C;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-add-affiliate:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Specific Stat Icon Colors */
.stat-icon.orange {
    background-color: #fff7ed;
    color: #f97316;
}

.stat-icon.green {
    background-color: #f0fdf4;
    color: #22c55e;
}

.stat-icon.red {
    background-color: #fef2f2;
    color: #ef4444;
}

.stat-info .trend.nothing {
    color: #f97316;
}

/* Table Filters & Tabs */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    background-color: #f1f3f9;
    padding: 5px;
    border-radius: 8px;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    background: transparent;
}

.tab-btn.active {
    background-color: #050C9C;
    color: var(--white);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f9;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.sort-dropdown select {
    border: none;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}

.filter-icon {
    width: 38px;
    height: 38px;
    background-color: #f1f3f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Status Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-status.active {
    background-color: #ecfdf5;
    color: #10b981;
}

/* Procedure Buttons */
.procedure-actions {
    display: flex;
    gap: 8px;
}

.btn-proc {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-proc.delete {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-proc.stop {
    background-color: #ffedd5;
    color: #f97316;
}

.btn-proc.activation {
    background-color: #d1fae5;
    color: #10b981;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    transition: all 0.3s !important;
    background: rgba(184, 184, 184, 17%) !important;
}

.page-link.active {
    background-color: #050C9C !important;
    color: var(--white) !important;
}

.page-text {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
}

/* Bottom Grid Widgets */
.best-performing-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 0px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.performer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.performer-details {
    flex-grow: 1;
}

.performer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.performer-agency {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #f1f3f9;
    border-radius: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 10px;
}

.performer-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
    text-align: right;
}

.pending-approvals-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    background-color: #eff6ff;
    border-radius: 12px;
    position: relative;
}

.pending-count-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-color: #1e3a8a;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.pending-title {
    color: #1e3a8a;
    font-weight: 600;
    position: absolute;
    top: 20px;
    left: 20px;
}

.health-review-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/bannerimg.svg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 40px 30px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    margin-top: 20px;
}

.health-review-banner h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.health-review-banner p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .table-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* All Links Page Specific Styles */
.btn-create-link {
    background-color: #050C9C;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-create-link:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.stat-icon.blue-soft {
    background-color: #eff6ff;
    color: #3b82f6;
}

.stat-icon.indigo-soft {
    background-color: #eef2ff;
    color: #6366f1;
}

.link-name-td {
    display: flex;
    flex-direction: column;
}

.link-name-td .title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.link-name-td .id-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.referral-link-td {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: var(--primary);
}

.link-badge {
    background-color: #eff6ff;
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px dashed #bfdbfe;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-search {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    width: 280px;
}

.card-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
}

.card-search i {
    color: var(--text-muted);
    font-size: 14px;
}

/* Commissions Page Specific Styles */
.campaign-banner {
background: linear-gradient(to right, #050C9C, #3572EF);
    color: var(--white);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.campaign-banner .banner-icon {
    font-size: 24px;
    margin-bottom: 15px;
}

.campaign-banner .banner-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.campaign-banner .banner-desc {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-banner-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    color: var(--white);
}

/* Goal Form Styles */
.goal-form-group {
    margin-bottom: 15px;
}

.goal-form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-symbol input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 35px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}

.input-with-symbol .symbol {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    font-size: 18px;
}

.goal-select {
    width: 100%;
    padding: 10px 15px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}

.goal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.btn-save {
    background-color: #050C9C;
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: var(--success);
    /* margin-bottom: 20px; */
}

.empty-state p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Export Button */
.btn-export {
    background-color: #050C9C;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.stat-icon.green-light {
    background-color: #f0fdf4;
    color: #22c55e;
}

/* Analytics Page Specific Styles */
.analytics-header {
    margin-bottom: 30px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group {
    background-color: #f1f3f9;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    gap: 5px;
}

.btn-filter {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter.active {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-filter.active:nth-child(2) {
    background-color: #050C9C;
    color: var(--white);
}

.analytics-btn-export {
    background-color: #050C9C;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.analytics-btn-export:hover {
    opacity: 0.9;
}

/* Enhanced Stat Cards */
.analytics-stats .stat-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050C9C;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Analytics Main Grid */
.analytics-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.commission-card, .partners-card, .device-card {
    grid-column: 1;
}

.smart-visions-card, .geographical-card, .visits-card {
    grid-column: 2;
}

.chart-container-large {
    height: 250px;
    width: 100%;
    margin-top: 20px;
}

.filter-tabs-sm {
    background-color: #f1f3f9;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    gap: 4px;
}

.tab-btn-sm {
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn-sm.active {
    background-color: #050C9C;
    color: var(--white);
}

/* Smart Visions */
.visions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vision-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
    background-color: rgba(243, 244, 246, 0.5);
}

.vision-item.blue {
    border-left-color: #3b82f6;
    background-color: #eff6ff;
}

.vision-item.light-blue {
    border-left-color: #60a5fa;
    background-color: #f0f9ff;
}

.vision-item.red {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.vision-icon {
    font-size: 16px;
}

.vision-item.blue .vision-icon { color: #3b82f6; }
.vision-item.light-blue .vision-icon { color: #f59e0b; }
.vision-item.red .vision-icon { color: #ef4444; }

.vision-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.vision-content p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Partners Table */
.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.analytics-table th {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.rate-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.rate-badge.success {
    color: #22c55e;
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Geographical Visions */
.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.map-img {
    width: 100%;
    max-height: 277px;
    object-fit: contain;
}

.map-legend, .donut-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.blue { background-color: #3b82f6; }
.dot.dark-blue { background-color: #050C9C; }
.dot.orange { background-color: #fbbf24; }
.dot.green { background-color: #22c55e; }
.dot.light-blue { background-color: #67e8f9; }

/* Device Distribution */
.device-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.device-item {
    display: grid;
    grid-template-columns: 120px 50px 1fr;
    align-items: center;
    gap: 15px;
}

.device-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.device-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-bar {
    height: 20px;
    background-color: #eff6ff;
    border-radius: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 6px;
}

.progress.orange { background-color: #fbbf24; }
.progress.light-blue { background-color: #bae6fd; }
.progress.blue { background-color: #3b82f6; }

/* Visits Card */
.chart-container-donut {
    height: 200px;
    margin: 20px 0;
}

/* Responsive Analytics */
@media (max-width: 1200px) {
    .analytics-main-grid {
        grid-template-columns: 1fr;
    }
    
    .commission-card, .partners-card, .device-card,
    .smart-visions-card, .geographical-card, .visits-card {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .btn-filter {
        flex: 1;
        padding: 8px 10px;
    }
    
    .analytics-btn-export {
        width: 100%;
        justify-content: center;
    }

    .device-item {
        grid-template-columns: 1fr 50px;
    }

    .progress-bar {
        grid-column: 1 / span 2;
        margin-top: 5px;
    }
}

/* Payout Page Styles */
.payout-container {
    padding-bottom: 50px;
}

.date-filter-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 15px;
    gap: 12px;
    margin-right: 15px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}

.date-input {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.date-input input[type="date"] {
    border: none;
    outline: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #050C9C;
}
.date-input i {
    position: absolute;
    right: 10px;
    pointer-events: none; /* allows clicking the input behind the icon */
    color: #6c757d;
}

.separator {
    color: #050C9C;
    font-weight: bold;
}

.btn-filter-results {
    background-color: #050C9C;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-filter-results:hover {
    background-color: var(--primary-dark);
}

.payout-stats .stat-card {
    padding: 24px;
    height: 100%;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon-box.blue {
    background-color: #eef2ff;
    color: #3b82f6;
}

.stat-icon-box.green {
    background-color: #f0fdf4;
    color: #22c55e;
}

.stat-icon-box.orange {
    background-color: #fff7ed;
    color: #f97316;
}

.stat-icon-box.orange i {
    border: 2px solid #f97316;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.stat-icon-box.red {
    background-color: #fef2f2;
    color: #ef4444;
}

.stat-icon-box.red i {
    border: 2px solid #ef4444;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.stat-info .trend.nothing {
    color: #f97316;
    font-weight: 500;
}

/* Pending Requests Card */
.btn-bulk-approve {
    background: var(--white);
    color: #3b82f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-bulk-approve:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

.payout-table th, .history-table th {
    color: #8b92a5;
    font-weight: 500;
    font-size: 14px;
    padding: 15px 10px;
    border-bottom: 1px solid #f3f4f6;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #8b92a5;
}

.empty-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    border: 2px solid currentColor;
}

.empty-icon-circle.green {
    color: #22c55e;
}

.empty-state p {
    font-size: 16px;
    font-weight: 500;
}

/* Validity Card */
.success-rate-box {
    background-color: #f0fdf4;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    width: 44px;
    height: 44px;
    background-color: #22c55e;
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.success-info {
    flex: 1;
}

.success-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.success-info p {
    font-size: 12px;
    color: #6b7280;
}

.rate-value {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
}

.processed-stats .label {
    font-size: 14px;
    color: #4b5563;
}

.processed-stats .value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.progress-container {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
}

.progress-bar-fill.green {
    background-color: #22c55e;
}

.methods-title {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.method-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.method-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.method-label .dot.blue {
    background-color: #3b82f6;
}

.method-label .dot.light-blue {
    background-color: #60a5fa;
}

.method-label .dot.blue-vibrant {
    background-color: #2563eb;
}

.method-value {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

/* History Card */
.filter-tabs-sm {
    display: flex;
    background-color: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.tab-btn-sm {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn-sm.active {
    background-color: #050C9C;
    color: var(--white);
}

.btn-export {
    background-color: #050C9C;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Responsive adjustments for Payout */
@media (max-width: 991px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-filter-group {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
    
    .btn-filter-results {
        width: 100%;
        justify-content: center;
    }
    
    .history-card .card-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .history-card .header-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Employees Page Styles */
.btn-add-employee {
    background-color: #050C9C;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-add-employee:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.employees-stats .stat-card {
    padding: 24px;
}

.employees-table th {
    color: #8b92a5;
    font-weight: 500;
    font-size: 14px;
    padding: 15px 10px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.employees-table td {
    padding: 15px 10px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.employees-table th:first-child,
.employees-table td:first-child {
    text-align: left;
}

.employees-table .user-td {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employees-table .user-td img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.employees-table .user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.employees-table .user-info p {
    font-size: 12px;
    color: #6b7280;
}

.badge-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.success {
    background-color: #f0fdf4;
    color: #22c55e;
}

.badge-status.danger {
    background-color: #fef2f2;
    color: #ef4444;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-action {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action.delete {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-action.delete:hover {
    background-color: #fecaca;
}

.btn-action.edit {
    background-color: #e0f2fe;
    color: #0ea5e9;
}

.btn-action.edit:hover {
    background-color: #bae6fd;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-item .page-link {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-item.active .page-link {
    background-color: #050C9C;
    color: var(--white);
    border-color: #050C9C;
}

.pagination .page-item .page-link:hover:not(.active) {
    background-color: #f9fafb;
}

/* Search Box and filters */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 15px 8px 35px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    width: 200px;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .table-controls {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .table-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box, .search-box input {
        width: 100%;
    }
    
    .filter-tabs {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 5px;
    }
}

/* Page Management Styles */
.btn-add-page {
    background-color: #050C9C;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-add-page:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.pages-table th {
    color: #8b92a5;
    font-weight: 500;
    font-size: 14px;
    padding: 15px 10px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.pages-table td {
    padding: 15px 10px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.pages-table th:first-child,
.pages-table td:first-child {
    text-align: left;
}

.page-link-text {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.update-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.update-info .date {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.update-info .user {
    font-size: 12px;
    color: #8b92a5;
}

.badge-status.draft {
    background-color: #f3f4f6;
    color: #6b7280;
}

.btn-action.display {
    background-color: #dcfce7;
    color: #10b981;
}

.btn-action.display:hover {
    background-color: #bbf7d0;
}

.type-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Page Settings Form */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 15px;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s;
}

.form-control-custom:focus {
    background-color: var(--white);
    border-color: #3b82f6;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.select-with-dot {
    position: relative;
    display: flex;
    align-items: center;
}

.select-with-dot .dot {
    position: absolute;
    left: 15px;
    z-index: 1;
}

.select-with-dot select {
    padding-left: 35px;
}

.last-update-box {
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

.last-update-box p {
    font-size: 13px;
    color: #8b92a5;
    font-weight: 500;
}

.update-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.user-details h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.user-details span {
    font-size: 12px;
    color: #8b92a5;
}

/* Page Editor */
.editor-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.editor-tab {
    padding: 10px 30px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
}

.editor-tab.active {
    color: #050C9C;
}

.editor-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #050C9C;
}

.banner-preview-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-editor-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-editor-action.change-image {
    background-color: var(--white);
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-editor-action.delete-banner {
    background-color: #fee2e2;
    color: #ef4444;
}

.custom-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.custom-switch .form-check-input:checked {
    background-color: #050C9C;
    border-color: #050C9C;
}

.device-controls {
    display: flex;
    background-color: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    gap: 5px;
}

.device-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.device-btn.active {
    background-color: #050C9C;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-save-changes {
    background-color: #050C9C;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-page-preview {
    background-color: var(--white);
    color: #050C9C;
    border: 1px solid #050C9C;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .editor-tabs {
        overflow-x: auto;
    }
    
    .editor-tab {
        padding: 10px 15px;
        white-space: nowrap;
    }
}