:root {
    color-scheme: light;
    --fc-bg: #f8fafc;
    --fc-surface: #ffffff;
    --fc-panel: #ffffff;
    --fc-border: #e2e8f0;
    --fc-border-strong: #cbd5f5;
    --fc-text: #0f172a;
    --fc-muted: #64748b;
    --fc-accent: #10b981;
    --fc-accent-dark: #059669;
    --fc-danger: #dc2626;
    --fc-warning: #f59e0b;
    --fc-card-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    --fc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--fc-font);
    background: var(--fc-bg);
    color: var(--fc-text);
}

body {
    display: flex;
    flex-direction: column;
}

.fc-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid var(--fc-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.fc-header__main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.fc-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
    text-decoration: none;
}

.fc-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.fc-nav a {
    color: var(--fc-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fc-nav a:hover,
.fc-nav a[data-active="true"] {
    color: #0f172a;
}

.fc-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fc-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--fc-muted);
}

.fc-user__name {
    font-weight: 600;
    color: #0f172a;
}

.fc-button {
    font-family: var(--fc-font);
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #e2e8f0;
    color: #0f172a;
}

.fc-button--primary {
    background: linear-gradient(135deg, var(--fc-accent), var(--fc-accent-dark));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.fc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.fc-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--fc-accent);
    cursor: pointer;
}

.fc-main {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.fc-footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--fc-muted);
    border-top: 1px solid var(--fc-border);
    background: #ffffff;
}

.fc-card {
    background: var(--fc-panel);
    border-radius: 24px;
    border: 1px solid var(--fc-border);
    padding: 1.75rem;
    box-shadow: var(--fc-card-shadow);
}

.fc-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.fc-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .fc-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fc-input-group label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fc-muted);
}

.fc-input,
.fc-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-input:focus,
.fc-select:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.fc-summary {
    display: grid;
    gap: 1.1rem;
}

.fc-summary__item {
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--fc-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fc-summary__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fc-muted);
}

.fc-summary__value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.fc-metric-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--fc-border);
    font-size: 0.85rem;
    color: #0f172a;
}

.fc-pill--positive {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}

.fc-pill--negative {
    background: #fef2f2;
    border-color: rgba(248, 113, 113, 0.35);
    color: #b91c1c;
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-card-shadow);
}

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

.fc-table th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--fc-muted);
    background: #f8fafc;
}

.fc-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.06);
}

.fc-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.14);
    color: var(--fc-accent-dark);
}

.fc-alert {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.fc-alert[data-tone="success"] {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.fc-alert[data-tone="info"] {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.fc-empty {
    padding: 2rem;
    text-align: center;
    color: var(--fc-muted);
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed var(--fc-border);
}

.fc-properties {
    display: grid;
    gap: 1rem;
}

.fc-properties__item {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--fc-border);
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.fc-properties__item button {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.fc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.25);
    display: none;
    font-size: 0.95rem;
}

.fc-toast[data-visible="true"] {
    display: block;
}

@media (max-width: 960px) {
    .fc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .fc-header__main {
        width: 100%;
        justify-content: space-between;
    }

    .fc-nav {
        width: 100%;
        justify-content: space-between;
    }

    .fc-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .fc-main {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .fc-main {
        padding: 1.25rem;
    }

    .fc-header {
        padding: 1rem 1.25rem;
    }

    .fc-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .fc-button {
        padding: 0.45rem 1rem;
    }
}

.fc-chart-container {
    border-radius: 20px;
    border: 1px solid var(--fc-border);
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: var(--fc-card-shadow);
}

.fc-chart-container h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.fc-chip-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
}

.fc-chip--negative {
    background: #fef2f2;
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.35);
}

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

.fc-section-heading h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.fc-top-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.fc-top-bar__inputs {
    display: flex;
    gap: 1rem;
    flex: 1 1 480px;
    flex-wrap: wrap;
}

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

.fc-top-actions .fc-button {
    min-width: 140px;
}

.fc-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.fc-filter-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--fc-border);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.fc-filter-button {
    border: none;
    background: transparent;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fc-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fc-filter-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.fc-filter-button[data-active="true"] {
    background: #0f172a;
    color: #ffffff;
}

.fc-property-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fc-property-panel {
    margin-bottom: 1.5rem;
}

.fc-property-button {
    border: 1px solid var(--fc-border);
    background: #ffffff;
    color: #0f172a;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fc-property-button:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.2);
}

.fc-property-button[data-active="true"] {
    background: linear-gradient(135deg, var(--fc-accent), var(--fc-accent-dark));
    color: #ffffff;
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.fc-card-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fc-muted-subtext {
    color: var(--fc-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.fc-chart { width: 100%; height: 300px; }

.fc-scrollable-table {
    max-height: 380px;
    overflow: auto;
    border-radius: 18px;
}

.fc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.fc-content-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1080px) {
    .fc-content-grid {
        grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
        align-items: start;
    }
}

.fc-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.fc-section-subtitle {
    color: var(--fc-muted);
    font-size: 0.9rem;
}

.fc-divider {
    height: 1px;
    background: var(--fc-border);
    margin: 1.25rem 0;
}
