@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Rajdhani:wght@500;700&display=swap');

:root {
    /* Theme Colors */
    --primary: #00f3ff;       /* Cyan */
    --secondary: #ff0055;     /* Hot Pink / Red */
    --bg-dark: #050510;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass: rgba(20, 20, 30, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    /* Dimensions */
    --nav-height: 70px;
}

/* --- Global Reset & Body --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    /* Modern Gradient Background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 85, 0.08) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 { font-family: 'Outfit', sans-serif; letter-spacing: -0.5px; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00a8b3);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 243, 255, 0.5); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary); color: white; box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); }

/* --- Cards & Containers --- */
.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.container { max-width: 1200px; margin: 0 auto; padding: calc(var(--nav-height) + 20px) 20px 50px; }

/* --- Forms & Inputs --- */
input, select, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    outline: none;
    margin-bottom: 15px;
    transition: 0.3s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 243, 255, 0.1); }

/* --- Grid & Layout Utilities --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }

/* --- Animations --- */
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(255, 0, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); } }
.pulse { animation: pulse-glow 2s infinite; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* --- Toast Notification --- */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.toast {
    background: rgba(10, 10, 20, 0.95);
    border-left: 4px solid var(--primary);
    color: white;
    padding: 15px 25px;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
    display: flex; align-items: center; gap: 10px;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* --- Console Styles --- */
#console-output {
    background: black;
    color: #0f0;
    font-family: 'Courier New', monospace;
    height: 300px;
    overflow-y: scroll;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 8px;
}

/* --- Toggle Switch (Admin) --- */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s; border-radius: 20px;
}
.slider:before {
    position: absolute; content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* --- Slots Counter --- */
.slots-counter {
    font-size: 0.8rem;
    background: rgba(0, 243, 255, 0.2);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}
.slots-full { background: var(--secondary); color: white; }

/* =========================================
            ADMIN DASHBOARD STYLES
   ========================================= */
.admin-layout { display: flex; height: calc(100vh - 70px); padding-top: 70px; }
.sidebar {
    width: 250px;
    background: #0a0a10;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.sidebar button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 600;
}
.sidebar button:hover, .sidebar button.active {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
}
.admin-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}
.admin-tab { display: none; animation: fadeIn 0.3s; }
.admin-tab.active { display: block; }
.edit-row {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.edit-row input { flex: 1; margin: 0; font-size: 0.9rem; }
.edit-row button { padding: 5px 15px; font-size: 0.8rem; }

/* =========================================
            USER DASHBOARD STYLES
   ========================================= */
.user-layout { display: flex; height: calc(100vh - 70px); padding-top: 70px; }
.user-sidebar {
    width: 250px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.user-sidebar button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 1rem;
}
.user-sidebar button:hover, .user-sidebar button.active {
    background: rgba(0, 243, 255, 0.1);
    color: white;
}

/* --- Responsive Mobile --- */
@media(max-width: 768px) {
    .nav-links { display: none; } /* Simplified for demo */
    .grid-3 { grid-template-columns: 1fr; }
    .admin-layout, .user-layout { flex-direction: column; height: auto; }
    .sidebar, .user-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
}