:root {
    --app-ink: #2a2118;
    --app-gold: #c6a04a;
    --app-deep: #2a2118;
    --app-paper: #f7f3ea;
}

html, body, .mud-typography, .mud-button, .mud-input, .mud-table {
    font-family: "Cairo", "Montserrat", "Segoe UI", sans-serif !important;
}

body {
    background: #f7f3ea;
}

.mud-appbar {
    background: linear-gradient(90deg, #1a1612 0%, #2a2118 58%, #6b4e22 100%) !important;
    color: #f8f1e3 !important;
    box-shadow: 0 8px 24px rgba(42, 33, 24, 0.22) !important;
}

.mud-drawer {
    border-inline-end: 1px solid rgba(228, 195, 106, 0.28);
}

.mud-nav-link {
    border-radius: 10px;
    margin: 2px 8px;
}

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: rgba(228, 195, 106, 0.18) !important;
    color: #e4c36a !important;
}

.mud-nav-group > .mud-nav-link > .mud-nav-link-text,
.mud-nav-link .mud-nav-link-text,
.mud-button-label {
    font-weight: 600 !important;
}

.mud-button-filled.mud-button-filled-primary,
.mud-button-filled.mud-button-filled-info {
    background: linear-gradient(180deg, #c6a04a 0%, #8c6424 100%) !important;
    color: #1a1612 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(140, 100, 36, 0.22);
}

.mud-button-filled {
    margin: 0 2px !important;
}

.mud-primary-text {
    color: #8c6424 !important;
}

.mud-paper {
    border: 1px solid rgba(140, 100, 36, 0.1);
    border-radius: 16px !important;
}

.mud-table {
    border-radius: 16px;
    overflow: hidden;
}

.mud-table-head .mud-table-cell {
    background: #2a2118 !important;
    color: #f8f1e3 !important;
    font-weight: 700 !important;
}

.mud-tabs-toolbar-info .mud-tab.mud-tab-active,
.mud-tab.mud-tab-active {
    background-color: #8c6424 !important;
    color: #f8f1e3 !important;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(228, 195, 106, 0.35), transparent 34%),
        linear-gradient(160deg, #1a1612 0%, #3d2e1c 48%, #f7f3ea 48%);
}

.login-card {
    width: min(460px, 92vw);
    border-radius: 24px !important;
    background: rgba(255, 252, 247, 0.97) !important;
    box-shadow: 0 24px 60px rgba(26, 22, 18, 0.24) !important;
}

.home-hero {
    margin-top: 28px;
    padding: 42px 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(247, 243, 234, 0.98));
}

.home-hero img {
    width: min(280px, 70%);
    height: auto;
}

.stat-card {
    height: 112px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px !important;
    background: linear-gradient(180deg, #fffcf7 0%, #f7f3ea 100%);
}

.tox .tox-statusbar {
    display: none !important;
}

.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px 32px;
    border-radius: 24px;
    color: #f8f1e3;
    background:
        radial-gradient(circle at 85% 20%, rgba(228, 195, 106, 0.35), transparent 28%),
        linear-gradient(120deg, #1a1612 0%, #3d2e1c 100%);
}

.dash-hero img {
    width: min(180px, 34vw);
    height: auto;
}

.dash-kicker {
    margin: 0 0 6px;
    color: #e4c36a;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dash-title {
    color: #f8f1e3 !important;
    font-weight: 700 !important;
}

.dash-lead {
    color: rgba(248, 241, 227, 0.78) !important;
    margin-top: 6px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dash-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffcf7 0%, #f7f3ea 100%);
    border: 1px solid rgba(140, 100, 36, 0.12);
    box-shadow: 0 10px 24px rgba(42, 33, 24, 0.06);
}

.dash-card p {
    margin: 0;
    color: #6e6254;
    font-weight: 600;
}

.dash-card strong {
    display: block;
    margin-top: 4px;
    color: #2a2118;
    font-size: 1.8rem;
    line-height: 1;
}

.dash-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #8c6424 !important;
    background: rgba(198, 160, 74, 0.16);
}

.dash-chart {
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px !important;
    background: #fffcf7 !important;
}

.dash-skeleton {
    border-radius: 18px;
}

@media (max-width: 960px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-hero { flex-direction: column; text-align: center; }
}
