@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #121212; /* Deep matte black from screenshot */
    --secondary: #fdfdfd;
    --accent: #000000;
    --bg-main: #ffffff;
    --bg-sidebar: #121212;
    --text-main: #121212;
    --text-muted: #888888;
    --border: #e0e0e0;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
    --sidebar-width: 240px;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* Sidebar Styling - Luxury Dark Mode */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; /* Grid effect from screenshot */
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    color: white;
}

.sidebar-header {
    margin-bottom: 24px;
}

.logo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.3em; /* Wide spacing from screenshot */
    text-transform: uppercase;
    color: white;
}

.role-badge {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 300;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.sidebar-nav li.active a, .sidebar-nav a:hover {
    color: white;
    padding-left: 10px;
}

.sidebar-footer {
    margin-top: auto;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: white;
    color: white;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px 32px;
}

.content-header {
    margin-bottom: 28px;
}

.header-title h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
}

.header-title h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: #888;
}

.header-title p {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Table Styling - Ultra Clean */
.table-container {
    background: transparent;
    position: relative;
    min-height: 400px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

th {
    text-align: left;
    padding: 14px 12px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px 12px;
    font-size: 13.5px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

th:first-child, td:first-child {
    padding-left: 0;
}

th:last-child, td:last-child {
    padding-right: 0;
}

.vendor-brand {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
}

.category-badge {
    font-size: 11px;
    color: #999;
    text-transform: lowercase;
    white-space: nowrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.status-active { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #ef6c00; }
.status-banned { background: #ffe3e3; color: #c92a2a; border: 1px solid #ffc9c9; }
/* Order Status Badge Colors - Premium High Fashion Palette */
.status-pending_payment, .status-PENDING_PAYMENT { background: #fffde7; color: #b78103; border: 1px solid #fff59d; }
.status-paid, .status-PAID { background: #e8eaf6; color: #3f51b5; border: 1px solid #c5cae9; }
.status-in_production, .status-IN_PRODUCTION { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }
.status-ready, .status-READY { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.status-shipped, .status-SHIPPED { background: #e0f7fa; color: #00838f; border: 1px solid #b2ebf2; }
.status-delivered, .status-DELIVERED { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-cancelled, .status-CANCELLED, .status-rejected, .status-REJECTED { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-disputed, .status-DISPUTED { background: #fbe9e7; color: #c62828; border: 1px solid #ffccbc; }
.status-HELD_IN_ESCROW, .status-held_in_escrow { background: #fff8e1; color: #f57c00; border: 1px solid #ffe0b2; }
/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 20px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--text-main);
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
}

.stat-sub {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

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

.btn {
    background: transparent;
    border: none;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-approve {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
}

.btn-approve:hover {
    letter-spacing: 2px;
}

.btn-reject {
    color: #aaa;
}

.btn-reject:hover {
    color: var(--error);
}

/* States */
.loading-overlay {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 1px solid #eee;
    border-top: 1px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 40px;
    right: 40px;
}

.toast {
    background: var(--primary);
    color: white;
    padding: 20px 40px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- FULL-SCREEN MODAL SYSTEM --- */
.full-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
}

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

.full-modal-inner {
    width: 100%;
    max-width: 560px;
    height: 100vh;
    background: #ffffff;
    padding: 32px 36px;
    position: relative;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.full-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: 1px solid var(--border);
    color: #666;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    z-index: 100;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.full-modal-close:hover { background: #f5f5f5; color: #121212; border-color: #ccc; }

.full-modal-body {
    display: flex;
    flex-direction: column;
}

.profile-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.profile-header h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 2px;
}

.profile-header h2 em { font-style: italic; color: var(--text-muted); }

.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label { 
    font-size: 11px; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 0; 
    display: block;
    flex-shrink: 0;
    min-width: 120px;
}

.info-value { 
    font-family: var(--sans); 
    font-size: 14px; 
    color: var(--text-main); 
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.info-value.email { font-family: var(--sans); font-size: 13px; color: #555; font-weight: 400; }
.info-value.money { color: #2e7d32; font-weight: 600; }

.full-modal-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.full-modal-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.full-modal-img:hover { opacity: 0.8; }

.full-modal-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.full-modal-footer .btn {
    padding: 10px 24px;
    font-size: 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* Admin Prompt & Confirm Modals */
.admin-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: adminFadeIn 0.3s ease;
}

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

.admin-prompt-box {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    padding: 50px 40px 40px;
    text-align: center;
    animation: adminSlideUp 0.35s ease;
}

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

.admin-prompt-box h4 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #121212;
}

.admin-prompt-box .admin-prompt-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.5;
}

.admin-prompt-box textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    margin-bottom: 30px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.admin-prompt-box textarea:focus {
    border-color: #121212;
}

.admin-prompt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.admin-prompt-actions .btn {
    padding: 14px 40px;
    font-size: 11px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-prompt-actions .btn-approve {
    background: #121212;
    color: #fff;
    border-color: #121212;
}

.admin-prompt-actions .btn-approve:hover {
    background: #333;
    letter-spacing: 2px;
}

.admin-prompt-actions .btn-reject {
    background: transparent;
    color: #888;
    border: 1px solid #e0e0e0;
}

.admin-prompt-actions .btn-reject:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.admin-confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff8e1;
    color: #ef6c00;
    font-family: var(--serif);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* CAC Verification Button styling */
.btn-cac-verify {
    background: transparent;
    border: 1px solid #121212;
    color: #121212;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    margin-left: 8px;
}

.btn-cac-verify:hover {
    background: #121212;
    color: #fff;
}

/* Inline CAC Verification Box styling */
.cac-result-box {
    margin-top: 10px;
    background: #f9fbf9;
    border: 1px solid #e1ebe1;
    border-radius: 6px;
    padding: 12px;
    font-size: 11px;
    color: #1b3a24;
    transition: all 0.3s ease;
    text-align: left;
}

.cac-result-box.hidden {
    display: none;
}

.cac-result-box .cac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9eee9;
    padding-bottom: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.cac-result-box .cac-badge {
    background: #1b3a24;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
}

.cac-result-box .cac-row {
    margin-bottom: 6px;
    line-height: 1.4;
}

.cac-result-box .cac-label {
    font-weight: 500;
    color: #556b2f;
    display: block;
    margin-bottom: 1px;
}

.cac-result-box .cac-value {
    font-weight: 600;
    color: #121212;
}



