:root {
    color-scheme: dark;
}

body {
    background-image:
        radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.18), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 1) 100%);
}

.menu-item {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: rgb(203 213 225);
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgb(30 41 59);
}

.menu-active {
    background: rgb(79 70 229);
    color: #fff;
}

.panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.92));
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
}

.metric-card {
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    right: -25px;
    top: -25px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.metric-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.list-item {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgb(30 41 59);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-item:hover {
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgb(79 70 229);
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: rgb(99 102 241);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgb(51 65 85);
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgb(71 85 105);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgb(190 18 60);
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: rgb(225 29 72);
}

.input-dark {
    background: rgb(2 6 23);
    border: 1px solid rgb(51 65 85);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: rgb(241 245 249);
}

.input-dark:focus {
    outline: 2px solid rgb(99 102 241);
    outline-offset: 1px;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.62), rgba(30, 27, 75, 0.45));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 30px rgba(2, 6, 23, 0.35);
}

.chart-wrap {
    position: relative;
    width: 100%;
}

.alert-item {
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(190, 24, 93, 0.35);
    background: rgba(76, 5, 25, 0.22);
    color: rgb(254, 226, 226);
    font-size: 0.92rem;
}
