@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --card: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #dbe3f0;
    --success-bg: #ecfdf5;
    --success-text: #166534;
    --error-bg: #fef2f2;
    --error-text: #b91c1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', Helvetica, sans-serif;
    background: linear-gradient(135deg, #eef4ff 0%, var(--bg) 100%);
    color: var(--text);
}

.container {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.hero {
    margin-top: 2rem;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

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

h1,
h2 {
    font-family: 'Merriweather', Georgia, serif;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.button:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: #e5e7eb;
    color: #111827;
}

.note, .muted {
    color: var(--muted);
}

.alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.user-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.table-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.upload-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.75rem;
}

.upload-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inline-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-body {
    background:
        radial-gradient(1300px 520px at -10% -30%, rgba(12, 59, 102, 0.28), transparent 62%),
        radial-gradient(1200px 420px at 110% -10%, rgba(29, 90, 145, 0.2), transparent 58%),
        linear-gradient(180deg, #eff5fb 0%, #f7fafd 100%);
}

.landing-page {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.brand-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.college-logo {
    display: block;
    width: clamp(220px, 36vw, 460px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-title {
    margin: 0;
    font-size: 1.3rem;
    color: #0f2f54;
}

.brand-subtitle {
    margin: 0.1rem 0 0;
    color: #406183;
}

.hero-panel {
    background: linear-gradient(170deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #cfdbeb;
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: 0 18px 36px rgba(12, 35, 64, 0.12);
}

.hero-grid {
    display: grid;
    gap: 1.2rem;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-copy h1 {
    margin-bottom: 0.8rem;
    color: #0d3158;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.hero-copy p {
    margin: 0;
    color: #334e68;
    max-width: 62ch;
}

.hero-side {
    background: linear-gradient(180deg, #f4f8fd 0%, #eaf1f9 100%);
    border: 1px solid #d3deeb;
    border-radius: 18px;
    padding: 1rem;
}

.hero-side h3 {
    margin-bottom: 0.55rem;
    color: #123a63;
}

.hero-side ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #3f5e7a;
}

.hero-side li {
    margin: 0.35rem 0;
}

.diagnostics-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.diagnostics-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdff;
}

.diagnostics-value {
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-ok {
    background: #ecfdf5;
    color: #166534;
}

.status-fail {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 640px) {
    .brand-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .college-logo {
        width: min(100%, 360px);
    }

    .diagnostics-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
