/* admin.css - Refactored for SaaS Theming */
:root {
    /* Brand Colors (Overwritable per company later) */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    
    /* Layout Colors */
    --bg-main: #0B0F19;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --bg-sidebar: #111827;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-muted: #94a3b8;
    
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 3rem; padding-left: 1rem; }
.logo span { color: var(--primary); font-weight: 300; }

.side-nav { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.side-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}
.side-nav a.active { background: rgba(59, 130, 246, 0.15); color: var(--primary); font-weight: 600; }
.side-nav a:hover:not(.active) { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 2rem; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.top-bar h2 { font-size: 1.5rem; font-weight: 500; }

.user-profile { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.content-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.modal-content {
    background: #1e293b;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }

/* Buttons */
.btn-primary { background: var(--primary); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-danger { background: #ef4444; color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer; }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer; }

/* Dashboard UI Elements */
.badge { padding: 0.25rem 0.6rem; border-radius: 6px; font-size: 0.75rem; background: rgba(255,255,255,0.1); }
.status { padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.status-confirmed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; margin-top: 1rem; }
.image-preview { width: 100%; aspect-ratio: 1; background-size: cover; border-radius: 8px; border: 1px solid var(--border-color); }
