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

:root {
    --brand-ink: #0e2a47;
    --brand-cyan: #00a6a6;
    --brand-orange: #ef7a29;
    --surface: #f5f7fb;
    --surface-soft: #ffffff;
    --text-main: #162231;
    --text-muted: #5e6b7a;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 40px rgba(14, 42, 71, 0.12);
    --shadow-card: 0 8px 22px rgba(14, 42, 71, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 166, 166, 0.12), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(239, 122, 41, 0.14), transparent 28%),
        linear-gradient(170deg, #eef3fb 0%, #f8fbff 52%, #f4f8fb 100%);
    background-attachment: fixed;
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    letter-spacing: 0.01em;
    color: var(--brand-ink);
    margin-top: 0;
}

a {
    color: var(--brand-cyan);
    text-decoration: none;
}

a:hover {
    color: #008d8d;
}

.app-shell {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 2.25rem auto;
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(14, 42, 71, 0.08);
    overflow: hidden;
}

.app-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    background: linear-gradient(120deg, var(--brand-ink) 0%, #194a7b 70%, #245f97 100%);
    color: #f2f8ff;
}

.app-shell-header strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
}

.app-shell-header small {
    color: rgba(242, 248, 255, 0.74);
}

.app-shell-content {
    padding: 1.4rem;
}

.card,
.panel,
.surface {
    background: #fff;
    border: 1px solid rgba(14, 42, 71, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.btn,
button,
input[type='submit'] {
    border-radius: 10px;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
button:hover,
input[type='submit']:hover {
    transform: translateY(-1px);
}

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

th,
td {
    padding: 0.72rem 0.78rem;
}

thead th {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--brand-ink);
    background: #edf3fa;
}

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

.fade-in {
    animation: appFadeIn 0.35s ease-out;
}

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

@media (max-width: 768px) {
    .app-shell {
        width: calc(100% - 1rem);
        margin: 1rem auto;
        border-radius: 14px;
    }

    .app-shell-header,
    .app-shell-content {
        padding: 1rem;
    }
}
