/* ==========================================================================
   ADMIN PANEL STYLES
   Organized CSS for the Admin Dashboard
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   MOBILE-FIRST PRODUCT MANAGEMENT STYLES
   ========================================================================== */

/* Product Overview Styles */
.products-overview {
    padding: 1rem;
}

/* Two Column Layout - Mobile First */
.products-overview > div[style*="grid-template-columns"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Overview Cards */
.overview-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

.overview-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.overview-card-header h3 {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overview-card-header i {
    color: var(--primary);
    width: 20px;
}

/* Stats Grid */
.overview-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.overview-stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.overview-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.overview-stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Currency Breakdown */
.currency-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

.currency-item:hover {
    background: var(--gray-100);
}

.currency-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.currency-details {
    flex: 1;
}

.currency-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.currency-count {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.currency-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Action Buttons */
.overview-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.overview-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: white;
    color: var(--gray-800);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    width: 100%;
}

.overview-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.overview-action-btn.primary {
    background: linear-gradient(135deg, var(--success), #0ea5e9);
    color: white;
    border-color: var(--success);
}

.overview-action-btn.secondary {
    background: linear-gradient(135deg, var(--info), var(--primary));
    color: white;
    border-color: var(--info);
}

.overview-action-btn.warning {
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: white;
    border-color: var(--warning);
}

.overview-action-btn.info {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
}

.overview-action-btn i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.action-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Recent Products List */
.recent-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

.recent-product-item:hover {
    background: var(--gray-100);
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.product-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.product-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Enhanced Products Table */
.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.products-table-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.products-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-bottom: none;
    position: relative;
}

.products-table th:first-child {
    border-top-left-radius: 12px;
}

.products-table th:last-child {
    border-top-right-radius: 12px;
}

.products-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.products-table tbody tr:hover {
    background: var(--gray-50);
}

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

/* Enhanced Product Image - FORCE LARGER SIZES WITH MAXIMUM SPECIFICITY */
.products-table .product-image, 
.products-table .product-table-image,
table .product-image,
table .product-table-image,
.product-image, 
.product-table-image {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    background: white !important;
    padding: 6px !important;
    transition: transform 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

.products-table .product-image:hover, 
.products-table .product-table-image:hover,
.product-mobile-card .product-image:hover,
table .product-image:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.product-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.icon-btn.view {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.icon-btn.view:hover {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.icon-btn.edit {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.icon-btn.edit:hover {
    background: linear-gradient(135deg, #dd6b20, #c05621);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

.icon-btn.delete {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

.icon-btn.delete:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

/* Phone Input Container Styles */
.phone-input-container {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: stretch;
}

.phone-input-container select {
    flex: 0 0 120px !important;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 500;
    font-size: 0.875rem;
}

.phone-input-container input {
    flex: 1 !important;
    border-radius: 0 8px 8px 0 !important;
    border-left: 1px solid var(--gray-300) !important;
}

.phone-input-container select:focus,
.phone-input-container input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Mobile-friendly phone input */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .phone-input-container select {
        flex: none !important;
        border-radius: 8px !important;
        border: 2px solid var(--gray-200) !important;
        min-height: 48px;
    }

    .phone-input-container input {
        border-radius: 8px !important;
        border: 2px solid var(--gray-200) !important;
        min-height: 48px;
    }
}

/* Enhanced Error State */
.error-state {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.error-state i {
    font-size: 4rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.error-state .btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Beautiful Mobile Product Cards */
@media (max-width: 768px) {
    .products-table,
    .products-table thead,
    .products-table tbody,
    .products-table th,
    .products-table td,
    .products-table tr {
        display: block;
    }

    .products-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .products-table tr {
        border: none;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        background: linear-gradient(135deg, #ffffff, #f8fafc);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }

    .products-table tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #667eea, #764ba2);
    }

    .products-table td {
        border: none;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        padding: 0.75rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .products-table td:last-child {
        border-bottom: none;
        justify-content: center;
        margin-top: 1rem;
    }

    .products-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a5568;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        min-width: 80px;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .product-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .product-category {
        margin-top: 0.5rem;
    }
}

/* Inline Overview Styles */
.inline-overview-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.overview-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.overview-inline-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.overview-inline-header h4 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.overview-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.overview-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 4px solid #667eea;
}

.overview-section h5 {
    margin: 0 0 1rem 0;
    color: #4a5568;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.overview-section h5 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat-compact {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-compact-number {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-compact-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.currency-compact {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.currency-compact.usdt { border-top: 3px solid #26d0ce; }
.currency-compact.btc { border-top: 3px solid #f7931a; }
.currency-compact.eth { border-top: 3px solid #627eea; }

.currency-compact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.currency-compact.usdt .currency-compact-icon { color: #26d0ce; }
.currency-compact.btc .currency-compact-icon { color: #f7931a; }
.currency-compact.eth .currency-compact-icon { color: #627eea; }

.currency-compact-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.currency-compact-stats {
    font-size: 0.8rem;
    color: #64748b;
}

.actions-compact {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-compact {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.action-compact.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.action-compact.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.action-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .overview-inline-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .overview-compact-grid {
        grid-template-columns: 1fr;
    }

    .stats-row, .currency-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions-compact {
        justify-content: center;
    }
}

/* Mobile Responsive Breakpoints */
@media (max-width: 768px) {
    /* Hide table on mobile, show cards instead */
    .products-table {
        display: none;
    }

    /* Mobile Product Cards */
    .products-mobile-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-mobile-card {
        background: white;
        border-radius: var(--border-radius);
        padding: 1rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--gray-200);
    }

    .product-mobile-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .product-mobile-image {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
        max-width: 90px !important;
        max-height: 90px !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        border: 2px solid var(--gray-200) !important;
        background: white !important;
        padding: 4px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        display: block !important;
    }

    .product-mobile-info h4 {
        color: var(--gray-800);
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .product-mobile-meta {
        font-size: 0.85rem;
        color: var(--gray-600);
    }

    .product-mobile-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .product-mobile-detail {
        text-align: center;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 6px;
        border: 1px solid var(--gray-200);
    }

    .product-mobile-detail-label {
        font-size: 0.75rem;
        color: var(--gray-600);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    .product-mobile-detail-value {
        font-weight: 600;
        color: var(--gray-800);
    }

    .product-mobile-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .product-mobile-actions .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Mobile Overview Layout */
    .products-overview > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr;
    }

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

    .overview-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    /* Desktop - Two columns for overview */
    .products-overview > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

    .overview-actions```text
 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Show table on desktop */
    .products-table {
        display: table;
    }

    .products-mobile-cards {
        display: none;
    }
}

@media (min-width: 1024px) {
    /* Large desktop optimizations */
    .overview-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .overview-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Layout Components */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.logout-btn {
    width: 100%;
}

/* Navigation */
.nav-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 1.5rem;
}

.nav-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--secondary);
    border-radius: 2px 0 0 2px;
}

.nav-icon {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Top Bar */
.top-bar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-600);
    cursor: pointer;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Content Area */
.content-area {
    padding: 2rem;
    max-width: 100%;
    overflow-x: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Bank Transfer Specific Styles */
.bank-transfer-management {
    width: 100%;
}

.bank-transfer-management .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bank-transfer-management .stat-card.pending {
    border-left: 4px solid var(--warning);
}

.bank-transfer-management .stat-card.verified {
    border-left: 4px solid var(--success);
}

.bank-transfer-management .stat-card.rejected {
    border-left: 4px solid var(--error);
}

.bank-transfer-management .stat-card.total-amount {
    border-left: 4px solid var(--primary);
}

.bank-transfer-management .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bank-transfer-management .stat-card.pending .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.bank-transfer-management .stat-card.verified .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.bank-transfer-management .stat-card.rejected .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.bank-transfer-management .stat-card.total-amount .stat-icon {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.bank-transfer-management .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.bank-transfer-management .stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-info strong {
    color: var(--gray-900);
    font-weight: 600;
}

.customer-info small {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.amount {
    font-weight: 600;
    color: var(--success);
}

.reference {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Mobile-Friendly Bank Transfer Styles */
@media (max-width: 768px) {
    .bank-transfer-management .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .bank-transfer-management .stat-card {
        padding: 1rem;
    }

    .bank-transfer-management .stat-number {
        font-size: 1.5rem;
    }

    .bank-transfer-management .stat-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .bank-transfer-management .management-header {
        flex-direction: column;
        gap: 1rem;
    }

    .bank-transfer-management .header-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .bank-transfer-management .header-actions .btn {
        flex: 1;
        min-width: 120px;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .bank-transfer-management .stats-grid {
        grid-template-columns: 1fr;
    }

    .bank-transfer-management .header-actions {
        flex-direction: column;
    }

    .bank-transfer-management .header-actions .btn {
        width: 100%;
    }
}

/* Bank Transfer Modal Styles */
.bank-transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.bank-transfer-modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.bank-transfer-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: between;
}

.bank-transfer-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
}

.bank-transfer-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
}

.bank-transfer-modal-close:hover {
    color: var(--gray-600);
}

.bank-transfer-modal-body {
    padding: 1.5rem;
}

.bank-transfer-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .bank-transfer-modal {
        padding: 0.5rem;
    }

    .bank-transfer-modal-content {
        max-height: 95vh;
    }

    .bank-transfer-modal-header,
    .bank-transfer-modal-body,
    .bank-transfer-modal-footer {
        padding: 1rem;
    }

    .bank-transfer-modal-footer {
        flex-direction: column;
    }

    .bank-transfer-modal-footer .btn {
        width: 100%;
    }
}

.transfer-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.transfer-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transfer-detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.transfer-detail-value {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 500;
}

/* Desktop/Mobile View Toggle */
.desktop-table-view {
    display: block;
}

.mobile-cards-view {
    display: none;
}

@media (max-width: 768px) {
    .desktop-table-view {
        display: none;
    }

    .mobile-cards-view {
        display: block;
    }
}

/* Mobile Card Styles */
.mobile-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

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

.mobile-card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.mobile-card-body {
    padding: 1rem;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mobile-card-row:last-child {
    margin-bottom: 0;
}

.mobile-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
    margin-right: 1rem;
}

.mobile-value {
    font-size: 0.875rem;
    color: var(--gray-900);
    text-align: right;
    font-weight: 500;
}

.mobile-card-actions {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-card-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.75rem;
    padding: 0.5rem;
}

.bank-transfer-card .mobile-card-header .customer-info {
    flex: 1;
}

.bank-transfer-card .mobile-card-header .status-badge {
    flex-shrink: 0;
}

/* Button Size Variations */
.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* Bank Transfer Modal Styles */
.transfer-details-container {
    padding: 1rem;
}

.transfer-overview {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    color: white;
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transfer-id h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.transfer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.info-section h5 i {
    color: var(--primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.info-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-row.full-width {
    flex-direction: column;
    gap: 0.5rem;
}

.info-row.full-width .info-value {
    text-align: left;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    flex-shrink: 0;
    min-width: 100px;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: right;
    word-break: break-word;
}

.info-value.amount {
    font-weight: 600;
    color: var(--success);
    font-size: 1rem;
}

.info-value.bank-account {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.info-value.reference {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Completely hide desktop table on mobile for bank transfers */
@media (max-width: 768px) {
    .bank-transfer-management .desktop-table-view {
        display: none !important;
    }

    .bank-transfer-management .mobile-cards-view {
        display: block !important;
    }

    /* Ensure no horizontal scrolling anywhere */
    .bank-transfer-management .data-table-container {
        overflow: visible;
    }

    .bank-transfer-management .data-table {
        width: 100%;
        min-width: unset;
    }
}

/* Enhanced mobile card for bank transfers */
@media (max-width: 768px) {
    .bank-transfer-card {
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .bank-transfer-card .mobile-card-header {
        padding: 0.75rem;
    }

    .bank-transfer-card .mobile-card-body {
        padding: 0.75rem;
    }

    .bank-transfer-card .mobile-card-actions {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .bank-transfer-card .mobile-card-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    .bank-transfer-card .customer-info strong {
        font-size: 0.875rem;
        display: block;
        margin-bottom: 0.25rem;
    }

    .bank-transfer-card .customer-info small {
        font-size: 0.75rem;
        color: var(--gray-500);
    }
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stat-card-change {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Data Tables */
.data-table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Enhanced Mobile-First Table Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .table-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .table-actions .search-box {
        min-width: auto;
        width: 100%;
    }

    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Enhanced Mobile-First Data Table */
.data-table {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(203, 213, 225, 0.3);
}

@media (max-width: 768px) {
    .data-table {
        border-radius: 12px;
        box-shadow: none;
        background: transparent;
        border: none;
    }
}

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

.desktop-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.desktop-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    vertical-align: middle;
}

.desktop-table tr:hover {
    background: var(--gray-50);
}

/* Enhanced Mobile Table */
.mobile-table {
    display: none;
}

@media (max-width: 768px) {
    .desktop-table {
        display: none;
    }

    .mobile-table {
        display: block;
    }
}

.mobile-item {
    background: white;
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.mobile-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mobile-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.mobile-item-title {
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.3;
}

.mobile-item-meta {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.mobile-item-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mobile-item-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.2);
}

.mobile-item-field:last-child {
    border-bottom: none;
}

.mobile-item-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.mobile-item-value {
    font-weight: 500;
    color: var(--gray-900);
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.mobile-item-value {
    font-size: 0.875rem;
    color: var(--gray-900);
}

.mobile-item-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.btn-danger:hover {
    background: #dc2626;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn.view {
    background: var(--info);
    color: white;
}

.icon-btn.view:hover {
    background: #2563eb;
}

.icon-btn.edit {
    background: var(--warning);
    color: white;
}

.icon-btn.edit:hover {
    background: #d97706;
}

.icon-btn.delete {
    background: var(--error);
    color: white;
}

.icon-btn.delete:hover {
    background: #dc2626;
}

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

.icon-btn.history:hover {
    background: #7c3aed;
}

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

.icon-btn.warning:hover {
    background: #d97706;
}

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

.icon-btn.success:hover {
    background: #059669;
}

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

.icon-btn.info:hover {
    background: #2563eb;
}

/* Toggle button styles */
.icon-btn.toggle.active {
    background: #48bb78 !important;
}

.icon-btn.toggle.active:hover {
    background: #38a169 !important;
}

.icon-btn.toggle.inactive {
    background: #ed8936 !important;
}

.icon-btn.toggle.inactive:hover {
    background: #dd6b20 !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fef2f2;
    color: #991b1b;
}

.status-admin {
    background: #ede9fe;
    color: #5b21b6;
}

.status-user {
    background: #e0f2fe;
    color: #0c4a6e;
}

.status-verified {
    background: #dcfce7;
    color: #166534;
}

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

.status-support {
    background: #fef3c7;
    color: #92400e;
}

.status-expired {
    background: #fef3c7;
    color: #92400e;
}

.status-used {
    background: #e0e7ff;
    color: #4338ca;
}

/* Bulk Actions */
.bulk-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.bulk-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-select label {
    font-weight: 500;
    margin: 0;
}

.bulk-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bulk-action-btn {
    transition: opacity 0.2s ease;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease;
}

.modal-small {
    max-width: 400px;
}

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

/* Enhanced Mobile-First Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        max-width: none;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        animation: slideUpMobile 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

.close-btn, .modal-close {
    background: rgba(107, 114, 128, 0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover, .modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 180px);
    }
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid rgba(203, 213, 225, 0.3);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .modal-footer {
        padding: 1.5rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

/* Enhanced Edit Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.expiration-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expiration-quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.expiration-quick-actions .btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 768px) {
    .expiration-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

.revoke-options {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    transform: scale(1.2);
}

.current-status-display {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.current-status-display h4 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-status-display h4::before {
    content: '📊';
    font-size: 1rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}

.status-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.status-item span:last-child {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.form-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: block;
}

/* Enhanced Icon Button Styles */
.icon-btn.edit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.25rem;
}

.icon-btn.edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile Action Buttons Enhancement */
@media (max-width: 768px) {
    .mobile-item-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(203, 213, 225, 0.3);
    }

    .mobile-item-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    margin-top: 1.5rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Notifications */
.notification,
.admin-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    max-width: 400px;
    z-index: 1100;
    border-left: 4px solid;
    font-weight: 500;
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.admin-notification.show,
.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.overlay.show {
    display: block;
}

/* Gift Card Specific Styles */
.gift-card-management-container {
    padding: 1.5rem;
    background: var(--gray-50);
    min-height: 100vh;
}

/* Enhanced Mobile-First Gift Card Stats Grid */
.gift-card-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .gift-card-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

/* Enhanced Modern Stat Card Styles */
.modern-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modern-stat-card:hover::before {
    opacity: 1;
}

.modern-stat-card .stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modern-stat-card .stat-card-info {
    flex: 1;
}

.modern-stat-card .stat-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.modern-stat-card .stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.modern-stat-card .stat-card-change {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.modern-stat-card .stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-stat-card .stat-card-icon i {
    font-size: 1.5rem;
    color: white;
}

@media (max-width: 768px) {
    .modern-stat-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .modern-stat-card .stat-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .modern-stat-card .stat-card-value {
        font-size: 1.75rem;
    }

    .modern-stat-card .stat-card-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .modern-stat-card .stat-card-icon i {
        font-size: 1.25rem;
    }
}

.gift-card-controls {
    margin-bottom: 1.5rem;
}

.gift-card-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-card-code code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: var(--secondary);
}

.currency-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.currency-usdt {
    background: #26a69a;
    color: white;
}

.currency-btc {
    background: #f7931a;
    color: white;
}

.currency-eth {
    background: #627eea;
    color: white;
}

.gift-card-item {
    border-left: 4px solid var(--primary);
}

.gift-card-item:hover {
    border-left-color: var(--secondary);
}

.verified-icon {
    color: #22c55e;
    margin-left: 0.25rem;
}

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

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

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

    .mobile-toggle {
        display: block;
    }

    .content-area {
        padding: 1rem;
    }

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

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .desktop-table {
        display: none;
    }

    .mobile-table {
        display: block;
    }

    .mobile-item-content {
        grid-template-columns: 1fr;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-item-actions {
        gap: 0.5rem;
        justify-content: center;
    }

    .action-buttons {
        gap: 0.5rem;
        justify-content: center;
    }

    .gift-card-management-container {
        padding: 1rem;
    }

    .gift-card-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .pagination-wrapper {
        display: none;
    }
}

/* Enhanced Search Container Styles */
.enhanced-search-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header {
    margin-bottom: 20px;
}

.search-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-title i {
    font-size: 20px;
    opacity: 0.9;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-group {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.enhanced-search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #2d3748;
}

.enhanced-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.enhanced-search-input::placeholder {
    color: #64748b;
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    z-index: 10;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: none;
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.filter-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.filter-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.enhanced-filter-select {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.enhanced-filter-select:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.enhanced-reset-btn {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.enhanced-reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.enhanced-reset-btn i {
    font-size: 14px;
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header .close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: opacity 0.2s ease;
}

.modal-header .close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

/* Form Styles */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Order Summary Styles */
.order-summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.order-summary-card h4 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    margin: 0.5rem -0.5rem -0.5rem -0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-bottom: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.orders-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode styles for modals and forms */
.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-mode .modal-content {
    background-color: #1f2937;
}

.dark-mode .modal-header {
    border-bottom-color: #374151;
}

.dark-mode .form-label {
    color: #e5e7eb;
}

.dark-mode .form-input,
.dark-mode .form-select,
.dark-mode .form-textarea {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.dark-mode .form-input:focus,
.dark-mode .form-select:focus,
.dark-mode .form-textarea:focus {
    border-color: #3b82f6;
}

.dark-mode .order-summary-card {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
}

.dark-mode .order-summary-card h4 {
    color: #e5e7eb;
}

.dark-mode .summary-row {
    border-bottom-color: #4b5563;
    color: #e5e7eb;
}

.dark-mode .form-actions {
    border-top-color: #374151;
}

.dark-mode .btn-outline {
    color: #9ca3af;
    border-color: #4b5563;
}

.dark-mode .btn-outline:hover {
    background: #374151;
    border-color: #6b7280;
}