/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Orbitron:wght@400;700;900&display=swap');

/* --- Root Variables --- */
:root {
    --bg-primary: #0d0c1d;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --accent-primary: #00f7ff;
    --accent-secondary: #e94560;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(0, 247, 255, 0.2);
    --glow-primary: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary), 0 0 15px var(--accent-primary);
    --glow-secondary: 0 0 5px var(--accent-secondary), 0 0 10px var(--accent-secondary);
}

/* --- General Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-primary);
}

/* --- Main Layout --- */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.1);
}

.main-content {
    flex-grow: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    height: 100vh;
}

/* --- Sidebar --- */
.sidebar .logo {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li a {
    display: block;
    padding: 0.9rem 1.2rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background: var(--bg-tertiary);
    box-shadow: inset 0 0 10px rgba(0, 247, 255, 0.2);
    border-left-color: var(--accent-primary);
    color: #fff;
}

/* --- Header / User Profile --- */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.user-profile a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

/* --- Cards and Containers --- */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--accent-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-secondary);
    border: 1px solid var(--accent-secondary);
    box-shadow: var(--glow-secondary);
}

.btn-secondary:hover {
     box-shadow: 0 0 25px var(--accent-secondary);
}

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-primary);
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* --- Alerts --- */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid;
}
.alert-success {
    background-color: rgba(0, 255, 135, 0.1);
    border-color: #00ff87;
    color: #00ff87;
}
.alert-danger {
    background-color: rgba(233, 69, 96, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* --- Login Page specific styles --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-card .logo {
    font-size: 3rem;
}
