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

:root {
    --color-bg-top: #eef4fa;
    --color-bg-bottom: #dbe8f3;
    --color-surface: rgba(232, 241, 249, 0.82);
    --color-surface-strong: rgba(244, 248, 252, 0.92);
    --color-panel: rgba(17, 31, 49, 0.96);
    --color-panel-soft: rgba(31, 93, 140, 0.16);
    --color-text: #162235;
    --color-muted: #5c6b7c;
    --color-muted-strong: #48586a;
    --color-primary: #1f5d8c;
    --color-primary-hover: #17486d;
    --color-accent: #8fb7d8;
    --color-success: #2e7d6d;
    --color-danger: #c55b66;
    --color-border: rgba(22, 34, 53, 0.12);
    --color-border-strong: rgba(22, 34, 53, 0.18);
    --shadow-soft: 0 18px 44px rgba(22, 34, 53, 0.1);
    --shadow-hover: 0 26px 54px rgba(31, 93, 140, 0.18);
    --shadow-panel: 0 28px 60px rgba(17, 31, 49, 0.22);
    --shadow-focus: 0 0 0 4px rgba(143, 183, 216, 0.28);
    --radius-card: 1.25rem;
    --radius-pill: 9999px;
    --radius-input: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(31, 93, 140, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(143, 183, 216, 0.22), transparent 20%),
        linear-gradient(180deg, var(--color-bg-top), var(--color-bg-bottom));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%);
    opacity: 0.9;
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.glass-card,
.surface-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.surface-card {
    background: var(--color-surface-strong);
}

.page-header {
    padding: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-title,
h1,
h2,
h3 {
    margin: 0;
    font-family: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.3rem, 4vw, 3.9rem);
    line-height: 1.02;
}

.hero-copy,
.section-copy,
.muted {
    color: var(--color-muted);
}

.hero-copy {
    max-width: 700px;
    margin-top: 14px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 600;
}

.layout-grid {
    display: grid;
    gap: 24px;
}

.toolbar-card,
.section-card {
    padding: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title h2 {
    font-size: 1.7rem;
}

.section-label {
    color: var(--color-muted-strong);
    font-size: 0.94rem;
    font-weight: 600;
}

.search-row,
.inline-actions,
.date-range-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.field,
.search-input,
.form-group input,
.form-group textarea,
.form-group select,
.date-range-inputs input[type="date"] {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid rgba(22, 34, 53, 0.12);
    border-radius: var(--radius-input);
    background: rgba(248, 251, 254, 0.86);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.field:focus,
.search-input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.date-range-inputs input[type="date"]:focus {
    outline: none;
    border-color: rgba(31, 93, 140, 0.45);
    box-shadow: var(--shadow-focus);
    background: rgba(255, 255, 255, 0.98);
}

.form-group textarea {
    min-height: 150px;
}

.button,
.search-btn,
.upload-btn,
.apply-date-btn,
.clear-date-btn,
.btn,
.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.search-btn:hover,
.upload-btn:hover,
.apply-date-btn:hover,
.clear-date-btn:hover,
.btn:hover,
.tab:hover {
    transform: translateY(-1px);
}

.button-primary,
.search-btn,
.upload-btn,
.apply-date-btn,
.btn-edit {
    background: linear-gradient(135deg, #1f5d8c, #4479a3);
    color: #f7f7f7;
    box-shadow: 0 14px 24px rgba(31, 93, 140, 0.22);
}

.button-primary:hover,
.search-btn:hover,
.upload-btn:hover,
.apply-date-btn:hover,
.btn-edit:hover {
    box-shadow: 0 18px 28px rgba(31, 93, 140, 0.28);
}

.button-secondary,
.clear-date-btn,
.tab,
.btn-delete {
    background: rgba(214, 229, 241, 0.64);
    color: var(--color-text);
    border: 1px solid rgba(22, 34, 53, 0.1);
    box-shadow: 0 10px 18px rgba(22, 34, 53, 0.06);
}

.button-secondary:hover,
.clear-date-btn:hover,
.tab:hover,
.btn-delete:hover {
    background: rgba(227, 237, 246, 0.9);
}

.tab.active {
    background: linear-gradient(135deg, #1f5d8c, #4479a3);
    color: #f7f7f7;
    box-shadow: 0 14px 26px rgba(31, 93, 140, 0.24);
}

.status-message {
    padding: 16px 18px;
    border-radius: 1rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
    display: none;
}

.success-message {
    background: rgba(46, 125, 109, 0.12);
    color: #1d5a4f;
    border-color: rgba(46, 125, 109, 0.2);
}

.error-message {
    background: rgba(197, 91, 102, 0.12);
    color: #8e3742;
    border-color: rgba(197, 91, 102, 0.2);
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-muted);
    border: 1px dashed rgba(22, 34, 53, 0.14);
    border-radius: 1rem;
    background: rgba(223, 235, 245, 0.5);
}

@media (max-width: 768px) {
    .app-shell {
        padding: 20px 14px 32px;
    }

    .page-header,
    .toolbar-card,
    .section-card {
        padding: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}
