@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    background-color: #f8fafc; /* Very light, clean slate */
    color: #334155; /* Slate 700 for better readability than pure black */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, #1e293b, #0f172a); /* Deep professional blue/black */
    color: white;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.user-greeting {
    margin-left: 30px;
    font-size: 0.9rem;
    color: #94a3b8;
    border-left: 1px solid #334155;
    padding-left: 20px;
}

.btn-logout {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-left: 20px;
    transition: all 0.2s ease !important;
}

.btn-logout:hover {
    background-color: #ef4444;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Main Content */
.main-content {
    padding: 40px;
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/login_bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    top: 0;
    left: 0;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.025em;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f8fafc;
    color: #1e293b;
}

.form-group input:focus {
    border-color: #3b82f6;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Utilities */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 0;
    border: 1px solid #e2e8f0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: background-color 0.15s;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.btn-action {
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-edit { background-color: #f59e0b; }
.btn-edit:hover { background-color: #d97706; }

.btn-delete { background-color: #ef4444; }
.btn-delete:hover { background-color: #dc2626; }

.btn-add { 
    background-color: #10b981; 
    margin-bottom: 24px; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 18px;
    font-size: 14px;
}
.btn-add:hover { background-color: #059669; }

/* Box Sections (used in Dashboard & Results) */
.box-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}
