body {
    background: #f5f8fa;
}

.login-shell {
    align-items: center;
    background: #f5f8fa;
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}

.login-panel {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    max-width: 440px;
    padding: 38px;
    width: 100%;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.shell {
    background: #f5f8fa;
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: #1e1e2d;
    padding: 28px 18px;
}

.brand {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    padding: 0 12px;
}

.login-panel .brand {
    color: #181c32;
    padding: 0;
}

.nav {
    display: grid;
    gap: 6px;
}

.nav a {
    border-radius: 0.65rem;
    color: #9d9da6;
    font-weight: 600;
    padding: 11px 14px;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus {
    background: #2a2a3c;
    color: #fff;
    outline: 0;
}

.nav details {
    display: grid;
    gap: 4px;
}

.nav summary {
    color: #565674;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
    padding: 14px 14px 6px;
    text-transform: uppercase;
}

.nav summary::-webkit-details-marker {
    display: none;
}

.content {
    padding: 30px;
}

.page-title {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

h1 {
    color: #181c32;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
}

.subtitle {
    color: #7e8299;
    margin: 0;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card,
.panel {
    background: #fff;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.card {
    padding: 24px;
}

.metric {
    color: #7e8299;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-value {
    color: #181c32;
    font-size: 34px;
    font-weight: 800;
    margin-top: 8px;
}

.panel {
    margin-top: 20px;
    overflow: hidden;
}

.panel-header {
    align-items: center;
    border-bottom: 1px solid #eff2f5;
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
}

.panel-header h2 {
    color: #181c32;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

form.inline-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    padding: 22px 24px;
}

label {
    color: #7e8299;
    display: grid;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
}

input,
select,
textarea {
    background: #f5f8fa;
    border: 1px solid #f5f8fa;
    border-radius: 0.65rem;
    color: #181c32;
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 88px;
    resize: vertical;
}

button,
.button {
    align-items: center;
    background: var(--bs-primary, #009ef7);
    border: 0;
    border-radius: 0.65rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
}

button:hover,
.button:hover {
    background: #008bd8;
}

.secondary {
    background: #f5f8fa;
    color: #181c32;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px dashed #eff2f5;
    color: #3f4254;
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #a1a5b7;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    margin: 2px;
    padding: 5px 9px;
}

.status-on {
    background: #e8fff3;
    color: #50cd89;
}

.status-off {
    background: #fff5f8;
    color: #f1416c;
}

.flash {
    border-radius: 0.65rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.flash-ok {
    background: #e8fff3;
    color: #50cd89;
}

.flash-error {
    background: #fff5f8;
    color: #f1416c;
}

.poster-thumb {
    border-radius: 0.65rem;
    height: 72px;
    object-fit: cover;
    width: 50px;
}

.form-modal-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .shell {
        grid-template-columns: 1fr;
    }
}
