:root {
    --blue: #002b5c;
    --blue-dark: #001735;
    --blue-soft: #e6eef9;
    --bg: #f4f5fb;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --radius-lg: 14px;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #e9f0ff 0, #f4f5fb 45%, #f4f5fb 100%);
    color: var(--text);
}

/* HEADER */
header {
    background: linear-gradient(to bottom, #002b5c, #001735);
    color: #ffffff;
    padding: 0.6rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.55);
    position: sticky;
    top: 0;
    z-index: 10;
}


header img {
    height: 110px;
    width: auto;
    flex-shrink: 0;
}


header h1 {
    font-family: "Times New Roman", Georgia, "Palatino Linotype", serif;
    font-size: 1.8rem;
    line-height: 1.25;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

header h1 .header-line1,
header h1 .header-line2 {
    display: block;
}

header h1 .header-line2 {
    font-size: 1.9rem;
}


main {
    padding: 2.2rem 1.5rem 2.8rem;
}

.page-container,
.login-container,
.content-container {
    max-width: 1024px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.55rem;
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.01em;
}

.page-subtitle {
    margin: 0 0 1.8rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* HOME */
.content-container h2 {
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
}

.content-container p {
    margin-top: 0;
    color: var(--muted);
}

.nav-links {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    border: 1px solid #d0d7ee;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    font-size: 0.94rem;
    min-width: 220px;
    transition: all 0.16s ease-out;
}

.nav-links a:hover {
    background: var(--blue-soft);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

/* LOGIN */
.login-container {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 2.2rem 2.4rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
}

.login-subtitle {
    margin-top: 0;
    margin-bottom: 1.6rem;
    color: var(--muted);
    font-size: 0.93rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.93rem;
    background: #f9fafb;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.8rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
    transition: all 0.18s ease-out;
}

button:hover,
.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.error-message {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.1rem;
}

/* STATS / CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(191, 219, 254, 0.9);
}

.stats-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.stats-value {
    margin-top: 0.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--blue-dark);
}

/* TABLES */
.table-wrapper {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(199, 210, 254, 0.9);
}


table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}


thead {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #ffffff;
}

th,
td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tbody tr:nth-child(even) {
    background: #f9fafb;
}

tbody tr:hover {
    background: #eef2ff;
}

.career-year {
    margin-bottom: 2.3rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.6rem 1rem;
    }
    header img {
        height: 80px;
    }
    header h1 {
        font-size: 1.05rem;
        white-space: normal;
    }
    main {
        padding: 1.4rem 1rem 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



    header img {
    height: 110px;
    width: auto;
    flex-shrink: 0;
}


    main {
        padding: 1.8rem 1rem 2.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-card {
        padding: 1.8rem 1.6rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        flex-direction: column;
    }
    .nav-links a {
        width: 100%;
        text-align: left;
    }
    header h1 {
        font-size: 0.95rem;
    }
}


    .nav-links {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

    .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    border: 1px solid #d0d7ee;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    font-size: 0.94rem;
    min-width: 220px;
    transition: all 0.16s ease-out;
}
}


/* Banner studente */
.student-banner {
    background: #f1f5fb;
    border: 1px solid #c7d2fe;
    padding: 0.6rem 1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #001735;
    border-radius: 8px;
}
