/* Irtiwaa Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3c34;
    --primary-dark: #142d27;
    --secondary-color: #4caf7d;
    --accent-color: #d4f5e9;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --bg-color: #f5f7fa;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo span {
    font-size: 12px;
    color: var(--text-light);
}

.nav-menu {
    padding: 12px 16px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 12px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.badge {
    background-color: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: auto;
}

.sidebar-footer {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: 280px;
    padding: 20px;
}

/* Header */
.header {
    background-color: transparent;
    padding: 10px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.header-right h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.user-profile .user-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    text-align: right;
    min-width: 0;
}

.user-profile #admin-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.user-profile .user-role {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

.user-profile > i {
    font-size: 12px;
    color: var(--text-light);
    margin-inline-start: auto;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 170px;
    padding: 6px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.user-dropdown button:hover {
    background: var(--bg-color);
}

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

.stat-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Content Sections */
.section {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

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

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 15px;
}

.filters select,
.filters input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.filters input {
    width: 250px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

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

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background-color: var(--bg-color);
}

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

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-accepted {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

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

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

    .main-content {
        margin-right: 0;
    }

    .menu-toggle {
        display: block;
    }

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

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filters {
        flex-direction: column;
        width: 100%;
    }

    .filters input {
        width: 100%;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 12px;
    }
}

/* Action Buttons in Tables */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn.view {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.action-btn.edit {
    background-color: #e3f2fd;
    color: #1976d2;
}

.action-btn.delete {
    background-color: #ffebee;
    color: #c62828;
}

.action-btn:hover {
    transform: scale(1.1);
}

.empty-row {
    text-align: center;
    padding: 30px;
    color: #888;
}

/* ── Agents Section ── */
#agents-section .filters-row,
#agent-requests-tab .filters-row {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: center;
}

#agents-section .filters-row input,
#agents-section .filters-row select,
#agent-requests-tab .filters-row input,
#agent-requests-tab .filters-row select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
}

#agents-table td {
    vertical-align: middle;
    font-size: 14px;
}

#agents-table .agent-name {
    font-weight: 600;
    color: var(--text-color);
}

#agents-table .agent-phone {
    direction: ltr;
    display: inline-block;
}

#agents-table .agent-advertising {
    color: #666;
    font-size: 13px;
}

#agents-table .agent-commission {
    font-weight: 700;
    color: var(--primary-color);
    background: #eef6fb;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

#agents-table .agent-coords {
    color: #888;
    font-size: 12px;
    direction: ltr;
}

.agent-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.agent-status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.agent-status-badge.suspended {
    background: #fff3e0;
    color: #ef6c00;
}

.agent-status-badge.inactive {
    background: #ffebee;
    color: #c62828;
}

.agent-status-badge.self-inactive {
    background: #fce4ec;
    color: #ad1457;
}

.agent-state-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

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

.agent-state-dot.on {
    background: #2e7d32;
}

.agent-state-dot.off {
    background: #c62828;
}

.agent-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.agent-toggle-label {
    font-weight: 700;
    font-size: 15px;
}

.agent-toggle-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.agent-toggle-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.agent-toggle-status.inactive {
    background: #ffebee;
    color: #c62828;
}

/* Agent Profile Icon Navigation */
.agent-profile-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.agent-profile-icon {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    text-align: center;
}

.agent-profile-icon .icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(37, 99, 80, 0.25);
    transition: all 0.25s;
}

.agent-profile-icon span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.agent-profile-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 80, 0.15);
    border-color: var(--primary-color);
}

.agent-profile-icon:hover .icon-circle {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(37, 99, 80, 0.35);
}

.agent-profile-icon.active {
    background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(37, 99, 80, 0.18);
}

.agent-profile-icon.active .icon-circle {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
}

.agent-profile-icon.active span {
    color: var(--primary-color);
}

.agent-profile-panel {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 8px;
    animation: fadeIn 0.25s ease-out;
}

.agent-profile-panel.active {
    display: block !important;
}

.agent-profile-panel .panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wallet Topup Tabs */
.wallet-topup-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.wallet-topup-tab {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.wallet-topup-tab:hover {
    background: var(--bg-color);
}

.wallet-topup-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(37, 99, 80, 0.2);
}

.wallet-topup-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.wallet-topup-panel .form-row {
    gap: 12px;
    margin-bottom: 12px;
}

.wallet-topup-panel .form-row:last-child {
    margin-bottom: 0;
}

.wallet-topup-panel .form-group label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.wallet-topup-panel .form-group input[readonly] {
    background: #f3f4f6;
    color: var(--text-color);
}

/* ===== Sidebar Enhancements ===== */
.sidebar-section {
    padding: 10px 25px;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    font-weight: 600;
}

.logo-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 26px;
    margin: 0;
}

.logo-text span {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Orders Section Header ===== */
#orders-section .section-header {
    flex-wrap: wrap;
    gap: 15px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

#orders-section .section-header h3 {
    margin-bottom: 0;
    white-space: nowrap;
}

#orders-section .section-header > div[style*="display:flex"] {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#orders-section .filters {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#orders-section .filters input[type="text"] {
    width: 180px;
}

#orders-section .filters input[type="date"] {
    width: 130px;
}

#orders-section .tab-content {
    animation: fadeIn 0.3s ease-out;
}

#orders-section .tab-content > .table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

#orders-section .tab-content > .table-container table {
    border-radius: 10px;
    overflow: hidden;
}

#orders-section .tab-content > .table-container thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

#orders-section .tab-content > .table-container tbody tr:nth-child(even) {
    background: var(--bg-color);
}

#orders-section .tab-content > .table-container tbody tr:hover {
    background: #f0fdf4;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Dashboard Header Bar ===== */
.dash-header-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-icon {
    font-size: 40px;
}

.dash-title h3 {
    font-size: 24px;
    margin: 0;
}

.dash-greeting {
    font-size: 14px;
    opacity: 0.9;
}

.dash-date {
    font-size: 12px;
    opacity: 0.7;
    margin-right: 10px;
}

.dash-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 200px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ===== Stats Variations ===== */
.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.stat-box.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.stat-box.warning {
    background: linear-gradient(135deg, #f57c00, #e65100);
    color: white;
}

.stat-box.success {
    background: linear-gradient(135deg, #00a86b, #008855);
    color: white;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.five-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* ===== Dashboard Layout ===== */
.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-col {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.dashboard-col.narrow {
    max-width: 350px;
}

/* ===== Alerts ===== */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-item.warning {
    background: #fff3cd;
    color: #856404;
}

.alert-item.info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-item.success {
    background: #d4edda;
    color: #155724;
}

/* ===== Forms ===== */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ===== Commission Settings ===== */
.commission-settings {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.commission-settings h4 {
    margin-bottom: 15px;
}

/* ===== Expandable Sections ===== */
.expandable-section {
    margin: 20px 0;
}

.expandable-section h4 {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    user-select: none;
}

.expandable-content {
    padding: 20px;
    display: none;
}

.expandable-content.active {
    display: block;
}

/* ===== Regions ===== */
.governorate-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.governorate-tab {
    padding: 10px 20px;
    border: none;
    background: var(--bg-color);
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.governorate-tab.active {
    background: var(--primary-color);
    color: white;
}

.regions-list {
    max-height: 800px;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 20px;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.region-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.region-item .region-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 8px;
}

.region-item .region-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.region-item .toggle-switch {
    width: 44px;
    height: 24px;
    margin: 0;
}

.region-item .toggle-switch .slider {
    border-radius: 24px;
}

.region-item .toggle-switch .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
}

.region-item .toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.region-item .toggle-switch .slider.switch-3d {
    width: 44px;
    height: 24px;
    border-radius: 24px;
}

.region-item .toggle-switch .slider.switch-3d:before {
    height: 18px;
    width: 18px;
    top: 3px;
    left: 3px;
}

.region-item .toggle-switch input:checked + .slider.switch-3d:before {
    transform: translateX(20px);
}

.region-item .toggle-switch .slider.switch-3d:after {
    display: none;
}

.map-container {
    height: 800px;
    background: var(--bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* ===== Database Tools ===== */
.db-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.db-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.db-card h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.db-card.warning {
    border-color: var(--warning-color);
}

.db-card.warning h4 {
    color: var(--warning-color);
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: #000;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 12px;
}

.actions-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ===== Support/Chat ===== */
.support-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.support-tab {
    padding: 10px 20px;
    border: none;
    background: var(--bg-color);
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
}

.support-tab.active {
    background: var(--primary-color);
    color: white;
}

.chat-list {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-item:hover {
    background: var(--bg-color);
}

.chat-view {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.chat-input button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== Constants Form ===== */
.constants-form {
    max-width: 800px;
}

.constants-form h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* ===== Pagination ===== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 0;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active):not(:disabled) {
    background: var(--bg-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

/* ===== Info Text ===== */
.info-text {
    background: #e3f2fd;
    color: #1976d2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== Utility Text Colors ===== */
.text-danger { color: #dc3545 !important; }
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }

/* ===== Checkbox Label ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ===== Chart Container ===== */
.chart-container {
    position: relative;
    width: 100%;
    max-height: 300px;
}

.chart-container canvas {
    max-height: 300px;
}

/* ===== Status Variations ===== */
.status-ontheway {
    background: #cce5ff;
    color: #004085;
}

.status-preparing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-arrived {
    background: #d4edda;
    color: #155724;
}

.status-filling {
    background: #fff3cd;
    color: #856404;
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 1400px) {
    .five-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-col.narrow {
        max-width: 100%;
    }
    
    .dash-header-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .five-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .five-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
    }
    
    .stat-box {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .db-tools {
        grid-template-columns: 1fr;
    }
}

/* Splash Ads Management */
.splash-ads-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 60px;
}

.splash-ad-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.splash-ad-thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.splash-ad-thumb.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.splash-ad-thumb.inactive {
    opacity: 0.5;
}

.splash-ad-label {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-light);
}

.splash-preview-box {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* Icon Previews */
.icon-preview {
    margin-top: 8px;
    min-height: 40px;
}

.form-hint {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}

/* Order Profile */
.order-profile {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.order-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.order-detail-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-detail-item .label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.order-detail-item .value {
    font-size: 15px;
    font-weight: 600;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.order-items-table th,
.order-items-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.order-items-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* User Profile Card */
.user-profile-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.user-wallet-section {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    align-items: center;
}

.wallet-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
}

.wallet-badge .amount {
    font-size: 24px;
    font-weight: 700;
}

.wallet-badge .label {
    font-size: 12px;
    opacity: 0.9;
}

/* ── OTP Settings ── */
.otp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 10px;
}

.otp-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.otp-card h4 {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.otp-card h4 i {
    font-size: 18px;
}

.otp-provider-option {
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}
.otp-provider-option input[type="radio"] {
    display: none;
}
.otp-provider-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #f8f9fa;
    transition: all 0.2s ease;
    overflow: hidden;
}
.otp-provider-card:hover {
    border-color: var(--primary-color);
    background: #eef6fb;
}
.otp-provider-option input[type="radio"]:checked + .otp-provider-card {
    border-color: var(--primary-color);
    background: #e8f5e9;
    box-shadow: 0 0 0 3px rgba(10, 106, 147, 0.1);
}
.otp-provider-card .check-icon {
    margin-right: auto;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.otp-provider-card > div {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.otp-provider-card .badge {
    flex-shrink: 0;
}
.otp-provider-option input[type="radio"]:checked + .otp-provider-card .check-icon {
    opacity: 1;
}

.otp-range-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.otp-range-group input[type="range"] {
    flex: 1;
}

.otp-range-value {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
    background: #eef6fb;
    padding: 4px 10px;
    border-radius: 6px;
}

.otp-logs-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.otp-logs-filter input,
.otp-logs-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 160px;
}

.otp-logs-filter .btn-danger {
    margin-right: auto;
}

.otp-resend-form {
    max-width: 480px;
    margin: 0 auto;
}

.otp-resend-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.status-text {
    font-weight: 600;
}

.hint-text {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

.provider-desc {
    margin: 2px 0 0;
    font-size: 12px;
    color: #888;
}

.purpose-breakdown {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.resend-result {
    margin-top: 16px;
    display: none;
}

@media (max-width: 768px) {
    .otp-grid {
        grid-template-columns: 1fr;
    }
    .otp-logs-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .otp-logs-filter input,
    .otp-logs-filter select,
    .otp-logs-filter .btn-danger {
        width: 100%;
        margin-right: 0;
    }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* 3D Agent Toggle Switch */
.agent-toggle-row .toggle-switch {
    width: 76px;
    height: 40px;
}

.toggle-switch .slider.switch-3d {
    width: 76px;
    height: 40px;
    border-radius: 40px;
    background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
    border: 3px solid #e5e7eb;
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.25),
        0 3px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    position: relative;
}

.toggle-switch .slider.switch-3d:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.toggle-switch .slider.switch-3d:after {
    content: "OFF";
    margin-left: 26px;
    transition: opacity 0.3s;
}

.toggle-switch input:checked + .slider.switch-3d {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    border-color: #a7f3d0;
    justify-content: flex-start;
}

.toggle-switch input:checked + .slider.switch-3d:before {
    transform: translateX(34px);
}

.toggle-switch input:checked + .slider.switch-3d:after {
    content: "ON";
    margin-left: 10px;
}

/* ===== New Dashboard Design ===== */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-top-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
}

.balance-card {
    background: linear-gradient(135deg, #1a3c34, #0f2922);
    border-radius: var(--radius);
    padding: 28px;
    color: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

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

.balance-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.balance-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.balance-body {
    flex: 1;
}

.balance-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.balance-amount {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.balance-label {
    font-size: 13px;
    opacity: 0.8;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
}

.balance-meta {
    display: flex;
    gap: 24px;
    font-size: 12px;
    opacity: 0.8;
}

.balance-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.balance-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: background 0.2s;
}

.balance-action:hover {
    background: rgba(255, 255, 255, 0.2);
}

.balance-action i {
    font-size: 16px;
}

.dash-stats-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.mini-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.mini-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mini-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.mini-stat-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.mini-stat-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

.mini-stat-trend.up {
    background: #e8f5e9;
    color: #388e3c;
}

.mini-stat-trend.down {
    background: #fce4ec;
    color: #c2185b;
}

.dash-middle-row,
.dash-bottom-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-col.wide {
    min-width: 0;
}

.section-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

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

.section-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.section-menu,
.add-plan {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-menu:hover,
.add-plan:hover {
    background: var(--bg-color);
}

.daily-limit-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.daily-limit-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.daily-limit-spent {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.daily-limit-total {
    font-size: 13px;
    color: var(--text-light);
}

.progress-bar {
    height: 10px;
    background: var(--bg-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar.thin {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 5px;
}

.daily-limit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.limit-percent {
    font-weight: 700;
    color: var(--text-color);
}

.limit-status {
    color: var(--text-light);
}

.saving-plans-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.saving-plan {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.plan-icon.emergency {
    background: #fff3cd;
    color: #856404;
}

.plan-icon.vacation {
    background: #e3f2fd;
    color: #1976d2;
}

.plan-icon.home {
    background: #e8f5e9;
    color: #388e3c;
}

.plan-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.plan-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

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

.chart-legend {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.chart-legend .dot.income {
    background: #1a3c34;
}

.chart-legend .dot.expense {
    background: #a7f3d0;
}

.chart-period {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    font-family: inherit;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
}

.chart-wrapper.donut {
    height: 180px;
    margin-bottom: 16px;
}

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

.transactions-table td {
    padding: 16px 14px;
    font-size: 14px;
}

.transactions-table td i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 8px;
    color: var(--text-light);
}

.transactions-table .amount-negative {
    color: var(--text-color);
    font-weight: 600;
}

.status-badge.failed {
    background: #ffebee;
    color: #c62828;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.statistic-legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-legend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-legend-label {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 600;
}

.stat-legend-value {
    font-size: 12px;
    color: var(--text-light);
}

.stat-legend-percent {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-info p {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.activity-info p strong {
    font-weight: 700;
}

.activity-info span {
    font-size: 12px;
    color: var(--text-light);
}

.pro-promo {
    background: var(--primary-color);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    margin-bottom: 20px;
}

.pro-promo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.pro-promo-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pro-promo-text h4 {
    font-size: 16px;
    font-weight: 600;
    max-width: 400px;
}

/* ===== Responsive Dashboard ===== */
@media (max-width: 1400px) {
    .dash-top-row,
    .dash-middle-row,
    .dash-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dash-top-row {
        grid-template-columns: 1fr;
    }

    .balance-actions {
        flex-wrap: wrap;
    }

    .balance-action {
        flex: 1 1 40%;
    }

    .dash-middle-row,
    .dash-bottom-row {
        grid-template-columns: 1fr;
    }

    .pro-promo-text {
        flex-direction: column;
        align-items: flex-start;
    }
}
