/* ==========================================================================
   DOOMNA LUXURY - ENTERPRISE ADMIN STYLESHEET
   Color Theme: Black (#070707), Lime Neon (#CCFF00), White (#FFFFFF)
   ========================================================================== */

:root {
    --bg-primary: #070707;
    --bg-surface: #0f0f0f;
    --bg-card: #141414;
    --bg-elevated: #1c1c1c;

    --accent-lime: #CCFF00;
    --accent-lime-dark: #a3cc00;
    --accent-lime-glow: rgba(204, 255, 0, 0.25);
    --accent-lime-subtle: rgba(204, 255, 0, 0.08);

    --text-white: #ffffff;
    --text-secondary: #999999;
    --text-dark: #070707;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.18);
    --border-lime: rgba(204, 255, 0, 0.4);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-primary); color: var(--text-white); font-family: var(--font-body); font-size: 14px; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; }
button { cursor: pointer; background: none; }

.neon-text { color: var(--accent-lime); }

.admin-login-overlay {
    position: fixed; inset: 0; background: rgba(4, 4, 4, 0.95); backdrop-filter: blur(20px);
    z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.admin-login-card {
    background: var(--bg-card); border: 1px solid var(--border-lime); box-shadow: 0 0 40px var(--accent-lime-glow);
    border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; text-align: center;
}

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--bg-surface); border-right: 1px solid var(--border-subtle); display: flex;
    flex-direction: column; padding: 24px 16px; position: sticky; top: 0; height: 100vh;
}
.sidebar-header { margin-bottom: 36px; padding: 0 8px; }
.logo-text { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; text-transform: lowercase; }
.badge-admin { background: var(--accent-lime); color: var(--text-dark); font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill); }

.sidebar-menu { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.menu-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md);
    color: var(--text-secondary); font-weight: 700; font-size: 0.85rem; text-align: left;
}
.menu-item:hover, .menu-item.active { background: var(--accent-lime-subtle); color: var(--accent-lime); border-left: 3px solid var(--accent-lime); }

.admin-main { padding: 32px 40px; overflow-y: auto; }
.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.top-bar h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px;
    border-radius: var(--radius-sm); font-weight: 800; font-size: 0.8rem; text-transform: uppercase;
}
.btn-primary { background: var(--accent-lime); color: var(--text-dark); box-shadow: 0 0 15px var(--accent-lime-glow); }
.btn-outline { background: transparent; color: var(--text-white); border: 1px solid var(--border-medium); }
.btn-block { width: 100%; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 20px; display: flex; gap: 16px; align-items: center; }
.metric-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.metric-icon.neon { background: var(--accent-lime-subtle); color: var(--accent-lime); border: 1px solid var(--border-lime); }

.table-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px; margin-bottom: 32px; }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 0.85rem; }
.admin-table th { font-size: 0.75rem; font-weight: 800; color: var(--accent-lime); text-transform: uppercase; background: var(--bg-surface); }

.chart-box { height: 160px; width: 100%; padding-top: 20px; }
.svg-chart { width: 100%; height: 100%; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-white); padding: 10px 14px; border-radius: var(--radius-sm); }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

.admin-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; }
.admin-modal-overlay.active { opacity: 1; visibility: visible; }
.admin-modal-container { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-lg); width: 100%; max-width: 650px; max-height: 90vh; overflow-y: auto; padding: 28px; }

.admin-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-elevated); border: 1px solid var(--accent-lime); box-shadow: 0 0 20px var(--accent-lime-glow); color: var(--text-white); padding: 12px 20px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.85rem; }
