:root {
    --color-brand-light: #4da8d3;
    --color-brand-dark: #183051;
    --color-brand-light-100: #e9f6fc;
    --color-brand-light-200: #cde9f5;
    --color-brand-dark-900: #0f233c;
    --color-brand-dark-800: #142946;
    --color-brand-surface: #f7fbfe;
    --color-brand-muted: #6b8097;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-brand-surface);
    color: var(--color-brand-dark);
    font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(77, 168, 211, 0.18), transparent 35%),
        radial-gradient(circle at 90% 100%, rgba(24, 48, 81, 0.15), transparent 35%);
}

.app-shell {
    min-height: 100vh;
}

@media (min-width: 768px) {
    .app-shell {
        display: grid;
        grid-template-columns: 280px 1fr;
    }
}

.app-sidebar {
    padding: 1.5rem;
    border-inline-end: 1px solid var(--color-brand-light-200);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.app-main {
    padding: 1rem;
}

@media (min-width: 768px) {
    .app-main {
        padding: 2rem;
    }
}

.brand-card {
    border-radius: 0.75rem;
    border: 1px solid var(--color-brand-light-200);
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 48, 81, 0.06);
}

.brand-kpi-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
}

.brand-kpi-card::before {
    content: "";
    position: absolute;
    top: -2.5rem;
    inset-inline-end: -2.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(77, 168, 211, 0.35), transparent 65%);
}

.brand-btn-primary {
    border: 0;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(120deg, var(--color-brand-light), var(--color-brand-dark));
}

.brand-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--color-brand-light-200);
    background: #fff;
    padding: 0.55rem 0.75rem;
}

.brand-input:focus {
    outline: none;
    border-color: var(--color-brand-light);
    box-shadow: 0 0 0 3px rgba(77, 168, 211, 0.25);
}

.brand-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.brand-table th,
.brand-table td {
    text-align: start;
    border-bottom: 1px solid var(--color-brand-light-200);
    padding: 0.7rem;
}

.text-brand-muted {
    color: var(--color-brand-muted);
}

@media (prefers-color-scheme: dark) {
    body {
        color: #fff;
        background: var(--color-brand-dark-900);
        background-image:
            radial-gradient(circle at 10% 0%, rgba(77, 168, 211, 0.22), transparent 30%),
            radial-gradient(circle at 85% 100%, rgba(20, 41, 70, 0.8), transparent 40%);
    }

    .app-sidebar,
    .brand-card {
        background: rgba(20, 41, 70, 0.75);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .brand-input {
        color: #fff;
        background: rgba(15, 35, 60, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .brand-table th,
    .brand-table td {
        border-color: rgba(255, 255, 255, 0.1);
    }
}
