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

:root {
    --app-bg: #f3f6fb;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-ink: #0f172a;
    --app-muted: #64748b;
    --app-border: rgba(15, 23, 42, 0.08);
    --app-brand: #ff6b00;
    --app-brand-alt: #ff3d00;
    --app-brand-dark: #1d4ed8;
    --app-success: #16a34a;
    --app-warning: #f59e0b;
    --app-danger: #ef4444;
    --app-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--app-ink);
    background:
        radial-gradient(circle at top left, rgba(255, 107, 0, 0.10), transparent 25%),
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.09), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 100%);
}

a {
    text-decoration: none;
}

.app-navbar {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell {
    max-width: 1440px;
}

.app-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    border-radius: 28px;
    box-shadow: var(--app-shadow);
}

.app-hero::before,
.app-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.55;
}

.app-hero::before {
    width: 240px;
    height: 240px;
    right: -60px;
    top: -80px;
    background: rgba(255, 107, 0, 0.36);
}

.app-hero::after {
    width: 180px;
    height: 180px;
    right: 160px;
    bottom: -70px;
    background: rgba(29, 78, 216, 0.34);
}

.app-hero > * {
    position: relative;
    z-index: 1;
}

.app-card,
.card-soft,
.card-kpi,
.card-menu,
.config-panel {
    border: 1px solid var(--app-border);
    border-radius: 22px;
    box-shadow: var(--app-shadow);
    background: var(--app-surface);
}

.metric-card {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -35px -35px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.metric-card .metric-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    opacity: 0.85;
}

.metric-card .metric-value {
    font-size: clamp(1.75rem, 2vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
}

.metric-card .metric-icon {
    position: absolute;
    right: 18px;
    bottom: 12px;
    font-size: 2.5rem;
    opacity: 0.25;
}

.metric-card.is-success { background: linear-gradient(135deg, #15803d, #22c55e); }
.metric-card.is-primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.metric-card.is-warning { background: linear-gradient(135deg, #d97706, #f59e0b); color: #111827; }
.metric-card.is-warning .metric-label,
.metric-card.is-warning .metric-value { color: #111827; opacity: 0.95; }
.metric-card.is-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
}

.status-chip.is-open { background: rgba(22, 163, 74, 0.12); color: #166534; }
.status-chip.is-warning { background: rgba(245, 158, 11, 0.12); color: #92400e; }
.status-chip.is-danger { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
.status-chip.is-muted { background: rgba(100, 116, 139, 0.12); color: #475569; }

.table-modern {
    overflow: hidden;
    border-radius: 18px;
}

.table-modern thead th {
    background: #0f172a;
    color: #fff;
    border: 0;
}

.table-modern tbody tr {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.table-modern tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.btn-brand {
    background: linear-gradient(135deg, var(--app-brand), var(--app-brand-alt));
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.25);
}

.btn-brand:hover {
    color: #fff;
    filter: brightness(1.03);
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: rgba(100, 116, 139, 0.22);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.topo {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--app-brand), var(--app-brand-alt));
    color: #fff;
    box-shadow: 0 10px 18px rgba(255, 107, 0, 0.25);
    font-weight: 800;
}

.page-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: var(--app-muted);
}

.soft-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: var(--app-shadow);
}

