:root {
    --bg-color: #121212;
    --card-bg: rgba(30, 30, 30, 0.6);
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --secondary-color: #03dac6;
    --error-color: #cf6679;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(100, 0, 100, 0.1) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(0, 100, 100, 0.1) 0%, transparent 20%);
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Glassmorphism Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Forms */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
    box-sizing: border-box; /* Important for full width */
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background: #a370f7;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error-color);
    color: #000;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: #aaa;
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Login Page specific */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(207, 102, 121, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}
