:root {
    --primary: #bb86fc;
    --secondary: #03dac6;
    --background: #121212;
    --surface: #1e1e1e;
    --on-surface: #e1e1e1;
    --error: #cf6679;
    --success: #4caf50;
    --accent: #3700b3;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
aside {
    width: 260px;
    background-color: var(--surface);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 4px 0 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo {
    padding: 0 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    padding: 1rem 2rem;
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

nav a:hover, nav a.active {
    color: var(--primary);
    background: rgba(187, 134, 252, 0.1);
    border-left: 4px solid var(--primary);
}

/* Main Content */
main {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
    max-width: 800px;
}

h2 {
    margin-top: 0;
    font-weight: 600;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

input, textarea, .select-field {
    width: 100%;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[readonly] {
    background: #1e1e1e;
    color: #888;
    cursor: not-allowed;
    border-color: #333;
}

input:focus, .select-field:focus {
    border-color: var(--primary);
}

button {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
}

.alert-success { background: rgba(76, 175, 80, 0.2); color: #81c784; border: 1px solid var(--success); }
.alert-error { background: rgba(207, 102, 121, 0.2); color: #e57373; border: 1px solid var(--error); }

@media (max-width: 768px) {
    body { flex-direction: column; }
    aside { width: 100%; border-right: none; border-bottom: 1px solid #333; padding: 1rem 0; }
    .logo { margin-bottom: 1rem; }
    nav { display: flex; overflow-x: auto; }
    nav a { padding: 1rem; border-left: none; border-bottom: 2px solid transparent; }
    nav a:hover, nav a.active { border-bottom: 2px solid var(--primary); }
}
