:root {
    --primary-color: #1E2B58;
    --secondary-color: #4A69BB;
    --accent-color: #82B34B;
    --danger-color: #e63946;
    --bg-color: #E8F4F8;
    --surface-color: rgba(255, 255, 255, 0.85);
    --text-main: #333333;
    --text-light: #666666;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    --radius: 16px;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 { color: var(--primary-color); font-weight: 700; }

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

/* Navigation */
.navbar {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 105, 187, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--secondary-color);
    color: white;
}
.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(74, 105, 187, 0.4);
}

.btn-success {
    background: var(--accent-color);
    color: white;
}
.btn-success:hover {
    box-shadow: 0 4px 15px rgba(130, 179, 75, 0.4);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }

/* Dashboard Grids */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}
.stat-card h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 5px;
}
.stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Table (Mobile responsive) */
.table-wrapper {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
th {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile specific overrides */
@media (max-width: 600px) {
    .container { padding: 15px; }
    .glass-card { padding: 15px; }
    .nav-links { font-size: 0.9rem; }
}
