:root {
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-bg: #1e293b;
    --sidebar-text: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.hide { display: none !important; }

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-control, input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}
.form-control:focus, input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-danger {
    background-color: #ef4444;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}
.w-100 { width: 100%; }

.glass-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Login Screen */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}
.login-title {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}
.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    height: 100vh;
}
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
}
.nav-links {
    list-style: none;
    padding: 1rem 0;
}
.nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}
#logout-btn {
    margin-top: auto;
    color: #ef4444;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
    background-color: #f1f5f9;
}
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.view-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--text-main);
}

/* Tables */
.table-container {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-card {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}
