:root {
    --u-coffee-900: #2d1c10;
    --u-coffee-800: #3b2615;
    --u-coffee-700: #853c16; /* #4b3621; */
    --u-coffee-100: #f1e8df;
    --u-ink: #0b0b0d;
    --u-soft: #f7f5f2;
    --u-glass: rgba(255, 255, 255, 0.7);
    --u-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    --u-radius-xl: 18px;
    --u-radius-lg: 12px;
    --u-radius-md: 8px;
    --u-border: 1px solid rgba(0, 0, 0, 0.08);
}

body.u-shell {
    background: radial-gradient(circle at 20% 20%, rgba(75, 54, 33, 0.05), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(75, 54, 33, 0.06), transparent 45%),
        var(--u-soft);
    color: var(--u-ink);
    min-height: 100vh;
    font-feature-settings: "liga" 1, "calt" 1;
}

body.u-shell .container,
body.u-shell .container-fluid {
    max-width: 1180px;
}

/* Navigation */
body.u-shell header.navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-bottom: var(--u-border);
    backdrop-filter: blur(12px);
}

body.u-shell .navbar-brand {
    font-weight: 700;
    color: var(--u-coffee-700);
    letter-spacing: -0.01em;
}

body.u-shell .navbar .nav-link {
    color: #2f2f33;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.u-shell .navbar .nav-link:hover,
body.u-shell .navbar .nav-link:focus {
    color: var(--u-coffee-700);
    transform: translateY(-2px);
}

body.u-shell .navbar .btn {
    border-radius: 999px;
    padding-inline: 1.1rem;
    font-weight: 700;
}

body.u-shell .navbar-toggler {
    border-radius: 12px;
    border: var(--u-border);
    padding: 0.45rem 0.65rem;
}

/* Surfaces */
body.u-shell .card,
body.u-shell .tab-content,
body.u-shell .list-group,
body.u-shell .accordion-item,
body.u-shell .table-responsive,
body.u-shell .alert,
body.u-shell .modal-content,
body.u-shell .bg-white {
    border-radius: var(--u-radius-xl) !important;
    border: var(--u-border);
    box-shadow: var(--u-shadow);
    background: #ffffff;
}

body.u-shell .card-header,
body.u-shell .table thead,
body.u-shell .accordion-button,
body.u-shell .list-group-item {
    background: linear-gradient(120deg, rgba(75, 54, 33, 0.06), rgba(255, 255, 255, 0.9));
    border-bottom: var(--u-border);
}

body.u-shell .list-group-item,
body.u-shell .accordion-button {
    border: var(--u-border);
}

/* Buttons */
body.u-shell .btn-primary,
body.u-shell .btn-dark {
    background: linear-gradient(135deg, var(--u-coffee-700), var(--u-coffee-800));
    border: none;
    box-shadow: 0 12px 30px rgba(75, 54, 33, 0.3);
}

body.u-shell .btn-outline-secondary,
body.u-shell .btn-outline-dark,
body.u-shell .btn-outline-primary {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--u-ink);
    font-weight: 700;
}

body.u-shell .btn-outline-secondary:hover,
body.u-shell .btn-outline-dark:hover,
body.u-shell .btn-outline-primary:hover {
    background: rgba(75, 54, 33, 0.08);
    color: var(--u-coffee-800);
}

body.u-shell .badge.bg-success {
    background-color: #0f9d58 !important;
}

body.u-shell .badge.bg-warning {
    background-color: #f9c74f !important;
    color: #5f420c !important;
}

body.u-shell .badge.bg-danger {
    background-color: #d7263d !important;
}

/* Inputs */
body.u-shell .form-control,
body.u-shell .form-select,
body.u-shell .form-check-input {
    border-radius: var(--u-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.u-shell .form-control:focus,
body.u-shell .form-select:focus,
body.u-shell .form-check-input:focus {
    border-color: var(--u-coffee-700);
    box-shadow: 0 0 0 3px rgba(75, 54, 33, 0.18);
}

body.u-shell .form-check-input:checked {
    background-color: var(--u-coffee-700);
    border-color: var(--u-coffee-700);
}

/* Pills and nav */
body.u-shell .nav-pills .nav-link {
    border-radius: 14px;
    font-weight: 700;
    color: #4a4b57;
}

body.u-shell .nav-pills .nav-link.active {
    background: rgba(75, 54, 33, 0.12);
    color: var(--u-coffee-800);
    border: var(--u-border);
}

/* Tables */
body.u-shell .table {
    --bs-table-hover-bg: rgba(75, 54, 33, 0.04);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--u-radius-lg);
}

body.u-shell .table > :not(caption) > * > * {
    border-color: rgba(0, 0, 0, 0.06);
    padding: 0.4rem 0.75rem;
}

body.u-shell .table thead th {
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
}

body.u-shell .table-responsive {
    border: none;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 768px) {
    body.u-shell .table thead {
        display: none;
    }

    body.u-shell .table,
    body.u-shell .table tbody,
    body.u-shell .table tr,
    body.u-shell .table td {
        display: block;
        width: 100%;
    }

    body.u-shell .table tr {
        margin-bottom: 1rem;
        background: #fff;
        border-radius: var(--u-radius-lg);
        box-shadow: var(--u-shadow);
        padding: 0.75rem 0.5rem;
        border: var(--u-border);
    }

    body.u-shell .table td {
        border: none;
        position: relative;
        padding-left: 40%;
        text-align: right;
    }

    body.u-shell .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 700;
        color: #5d5248;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        font-size: 0.75rem;
    }
}

/* Cards */
body.u-shell .card {
    overflow: hidden;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 232, 223, 0.75) 100%);
}

body.u-shell .card .card-title {
    font-weight: 800;
    color: var(--u-ink);
}

body.u-shell .card .icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 54, 33, 0.08);
    color: var(--u-coffee-800);
}

/* Alerts */
body.u-shell .alert-primary,
body.u-shell .alert-info {
    background: rgba(75, 54, 33, 0.06);
    border: 1px solid rgba(75, 54, 33, 0.15);
    color: var(--u-coffee-800);
}
body.u-shell .alert-danger {
    background:#f9ebeb;
    color:#000;
    border-left:10px solid #f57b72;
    border-radius:4px !important;
}
body.u-shell .alert-success {
    background:#e9f2ec;
    color:#000;
    border-left:10px solid #49a87d;
    border-radius:4px !important;
}


/* Timeline pills */
body.u-shell .step-badge {
    background: rgba(75, 54, 33, 0.12);
    color: var(--u-coffee-800);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
}

/* Footer tweaks */
body.u-shell footer {
    border-top-left-radius: var(--u-radius-xl);
    border-top-right-radius: var(--u-radius-xl);
}

@media (max-width: 576px) {
    body.u-shell header.navbar .container {
        padding-inline: 1rem;
    }

body.u-shell main .container,
body.u-shell main .container-fluid {
    padding-inline: 1rem;
}
}

/* Dashboard accent utilities */
body.u-shell .text-coffee-emphasis { color: var(--u-coffee-800); }
body.u-shell .letter-space-1 { letter-spacing: 0.08em; }

body.u-shell .btn-coffee {
    background: linear-gradient(135deg, var(--u-coffee-800), var(--u-coffee-700));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding-inline: 1.1rem;
    box-shadow: 0 12px 30px rgba(45, 28, 16, 0.2);
}

body.u-shell .btn-coffee:hover,
body.u-shell .btn-coffee:focus { color: #fff; filter: brightness(1.02); }

body.u-shell .border-coffee { border-color: var(--u-coffee-700) !important; }

/* Hero */
body.u-shell .u-hero {
    background: linear-gradient(145deg, #fff, rgba(241, 232, 223, 0.8));
    position: relative;
    overflow: hidden;
}

body.u-shell .u-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(75, 54, 33, 0.08), transparent 40%);
    pointer-events: none;
}

body.u-shell .u-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

body.u-shell .u-tile {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--u-radius-lg);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.u-shell .u-tile-label {
    text-transform: uppercase;
    color: #6b6259;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

body.u-shell .u-tile-value {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--u-ink);
}

body.u-shell .u-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

body.u-shell .u-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--u-coffee-700), var(--u-coffee-800));
    border-radius: 999px;
}

/* Spotlight */
body.u-shell .u-spotlight {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: var(--u-radius-lg);
    padding: 1rem;
}

body.u-shell .u-spotlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Table tweaks */
body.u-shell .u-table-sticky thead th { position: sticky; top: 0; z-index: 2; }

/* Pills & tiles */
body.u-shell .u-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(75, 54, 33, 0.05);
    border: 1px solid rgba(75, 54, 33, 0.12);
    border-radius: var(--u-radius-lg);
    padding: 0.85rem 1rem;
}

body.u-shell .u-stat-tile {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--u-radius-lg);
    padding: 0.85rem 1rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

body.u-shell .u-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--u-radius-lg);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

body.u-shell .u-meter {
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

body.u-shell .u-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--u-coffee-700), var(--u-coffee-900));
}

/* Empty states */
body.u-shell .u-empty {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: var(--u-radius-lg);
    padding: 1rem;
}
#animated-bg {
    background: linear-gradient(223deg,#9b4e32,#111827);
}