:root {
    --bg-dark: #050505;
    --bg-panel: #111111;
    --primary-color: #00f2ff;
    /* Cyan Neon */
    --secondary-color: #bc13fe;
    /* Purple Neon */
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography & Glows */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 242, 255, 0.3);
}

.glow-box {
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

/* Header & Nav */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
    display: block;
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Nested Menu Styling */
nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    flex-direction: column;
    gap: 0;
}

nav ul li:hover>ul {
    display: flex;
    animation: fadeIn 0.3s ease;
}

nav ul ul li {
    width: 100%;
}

nav ul ul a {
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
}

nav ul ul a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Login Button & Dropdown */
.login-container {
    position: relative;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    width: 300px;
    display: none;
    /* Toggled via JS */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.dropdown-menu a:visited {
    color: var(--text-muted);
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #a010d6;
}

/* Main Content */
main {
    flex: 1;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, rgba(5, 5, 5, 0) 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid for "Space for Future Additions" */
.grid-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Admin Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--bg-panel);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

table th {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.action-btn {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.btn-danger {
    background: #ff3333;
    color: white;
}

.btn-warning {
    background: #ffaa00;
    color: black;
}

.btn-primary {
    background: var(--primary-color);
    color: black;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.text-danger {
    color: #ff3333;
}