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

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00a86b;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --bg-color: #f5f6fa;
    --sidebar-bg: #1a1a2e;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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: white;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-right: 4px solid var(--primary-color);
}

.nav-item i {
    font-size: 18px;
    width: 25px;
    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: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
}

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

/* Header */
.header {
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.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: 25px;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notifications i {
    font-size: 20px;
    color: var(--text-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

/* 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: 15px;
    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.edit {
    background-color: #e3f2fd;
    color: #1976d2;
}

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

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

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

.logo-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc, #00a86b);
    border-radius: 12px;
}

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

.logo-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== 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: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 20px;
}

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

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

.map-container {
    height: 300px;
    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 {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.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) {
    background: var(--bg-color);
}

/* ===== 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;
}
