:root {
    --brand-red-1: #3f0c14;
    --brand-red-2: #6e111b;
    --brand-red-3: #a51524;
    --brand-red-4: #d11f31;
    --text-primary: #f8fafc;
    --text-soft: #fecdd3;
    --surface-base: rgba(14, 11, 16, 0.86);
    --surface-raised: rgba(40, 13, 21, 0.72);
    --surface-glass: rgba(255, 255, 255, 0.08);
    --surface-glass-strong: rgba(255, 255, 255, 0.12);
    --panel-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 24px 48px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 6% 8%, rgba(209, 31, 49, 0.4), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(110, 17, 27, 0.52), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(239, 68, 68, 0.2), transparent 30%),
        linear-gradient(155deg, #07050a 0%, #100912 44%, #1f0f16 100%);
    min-height: 100vh;
}

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

.app-nav {
    background: linear-gradient(90deg, rgba(63, 12, 20, 0.85), rgba(110, 17, 27, 0.75));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    letter-spacing: 0.2px;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    border-radius: 999px;
    padding: 0.35rem 0.8rem !important;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: linear-gradient(130deg, rgba(209, 31, 49, 0.65), rgba(239, 68, 68, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-panel,
.card,
form,
.content-card {
    border: 1px solid var(--panel-border);
    background: linear-gradient(150deg, var(--surface-glass-strong), var(--surface-glass));
    backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.card {
    overflow: hidden;
}

.card .card-body h6,
h6 {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
}

.stats-card {
    position: relative;
    background: linear-gradient(150deg, rgba(110, 17, 27, 0.65), rgba(63, 12, 20, 0.75));
}

.stats-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -40px;
    top: -50px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.42), transparent 70%);
    pointer-events: none;
}

.stats-value {
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary,
.btn-success {
    background: linear-gradient(120deg, var(--brand-red-3), var(--brand-red-4));
    border-color: rgba(251, 113, 133, 0.62);
    box-shadow: 0 8px 18px rgba(209, 31, 49, 0.35);
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(120deg, #be123c, #ef4444);
    transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-secondary {
    border-color: rgba(251, 113, 133, 0.55);
    color: #ffd1d8;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(251, 113, 133, 0.74);
    color: #fff;
}

.table {
    color: var(--text-primary);
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-raised);
    border: 1px solid var(--panel-border);
}

.table thead th,
.table-redhead thead th,
.table.table-redhead > thead > tr > th {
    background: linear-gradient(90deg, rgba(110, 17, 27, 0.92), rgba(165, 21, 36, 0.78));
    color: #ffe4e6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.table.table-redhead > thead > tr > th {
    background-image: linear-gradient(90deg, rgba(110, 17, 27, 0.95), rgba(165, 21, 36, 0.82)) !important;
    color: #ffe4e6 !important;
}

.table.table-redhead {
    background: linear-gradient(180deg, rgba(35, 10, 16, 0.86), rgba(26, 10, 14, 0.84));
    border: 1px solid rgba(251, 113, 133, 0.26);
}

.table.table-redhead > tbody > tr > td {
    background: rgba(24, 10, 14, 0.72);
    color: #ffe4e6;
}

.table.table-redhead.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(46, 12, 19, 0.72);
    color: #ffe4e6;
}

.table td,
.table th {
    border-color: rgba(255, 255, 255, 0.12);
    vertical-align: middle;
    padding: 0.85rem 1rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #f8fafc;
    background-color: rgba(255, 255, 255, 0.03);
}

.form-control,
.form-select,
textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(251, 113, 133, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.22);
}

.form-select option {
    background-color: #000;
    color: #fff;
}

.form-select option:checked,
.form-select option[selected] {
    background-color: #b91c1c;
    color: #fff;
}

.alert {
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(110, 17, 27, 0.52);
    color: #ffe4e6;
}

h3, h4, h5 {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.section-shell {
    padding: 1rem;
}

p, li, label, small, strong {
    color: var(--text-primary);
}

a {
    color: #fecaca;
}

a:hover {
    color: #fff1f2;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-header h3,
.page-header h4 {
    margin: 0;
}

.content-card {
    padding: 1rem;
}

.content-card form {
    padding: 0.75rem;
}

.section-title {
    color: #ffe4e6;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(244, 63, 94, 0.24);
    color: #ffe4e6;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff1f2;
    font-size: 0.73rem;
}
