:root {
    --bg: #050608;
    --panel: #0d1016;
    --panel-2: #141923;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(235, 26, 38, 0.42);
    --text: #f6f7fb;
    --muted: #9ca3af;
    --soft: #c6ccd8;
    --red: #ec1c24;
    --red-2: #b70f18;
    --green: #19c37d;
    --blue: #4ea1ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(236, 28, 36, 0.22), transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(78, 161, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #030405 0%, #0b0d13 50%, #050608 100%);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a,
a:hover {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 18px;
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(7, 8, 12, 0.96));
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.brand-block {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 186px;
    padding: 16px 12px 20px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.brand-block:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.brand-logo {
    width: min(178px, 100%);
    height: 124px;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(236, 28, 36, 0.22));
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.brand-block small,
.sidebar-link small,
.sidebar-session small,
.eyebrow,
.app-footer span,
.login-footer span {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.sidebar-link {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 12px;
    color: var(--soft);
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.sidebar-link i {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-link span {
    font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    border-color: var(--line-strong);
    background: linear-gradient(135deg, rgba(236, 28, 36, 0.26), rgba(255, 255, 255, 0.04));
}

.sidebar-link.active i {
    background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow: 0 12px 28px rgba(236, 28, 36, 0.32);
}

.sidebar-session {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(25, 195, 125, 0.12);
}

.content-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-topbar {
    min-height: 104px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.62);
    backdrop-filter: blur(18px);
}

.content-topbar h1 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 30px;
    font-weight: 850;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-chip,
.logout-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.logout-chip {
    color: #fff;
    border-color: rgba(236, 28, 36, 0.36);
}

.logout-chip:hover {
    color: #fff;
    background: var(--red);
}

.panel-content {
    flex: 1;
    width: 100%;
    padding: 28px 32px 38px;
}

.app-footer,
.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 32px;
    border-top: 1px solid var(--line);
}

.login-footer {
    justify-content: center;
    border-top: 0;
}

.card,
.wow-bg,
.modal-content {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.95), rgba(13, 16, 22, 0.96));
    box-shadow: var(--shadow);
}

.card {
    overflow: hidden;
}

.card-header {
    color: var(--text);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.card-body {
    color: var(--text);
}

.container,
.container-fluid,
.col-md-12.mx-auto {
    max-width: 1180px;
}

.container.text-center.text-dark,
.container-fluid,
.col-md-12.mx-auto {
    color: var(--text) !important;
}

.col-lg-4.d-block.mx-auto {
    max-width: 620px;
    flex: 0 0 620px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.colorboard,
.text-gray-800,
.text-primary {
    color: #fff !important;
}

h2.colorboard,
h3.colorboard {
    margin-bottom: 18px;
    font-weight: 850;
}

.table-responsive {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 12, 18, 0.74);
    box-shadow: var(--shadow);
}

.table {
    margin-bottom: 0;
    color: var(--soft);
    table-layout: fixed;
}

.table thead th {
    color: #fff;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
}

.table td,
.table th {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.07);
    word-break: break-word;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.table-striped tbody tr:hover {
    background: rgba(236, 28, 36, 0.1);
}

.logo-preview-box {
    display: grid;
    min-height: 280px;
    place-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(236, 28, 36, 0.16), rgba(255, 255, 255, 0.035) 45%, rgba(0, 0, 0, 0.22));
}

.logo-preview-box img {
    max-width: min(320px, 100%);
    max-height: 240px;
    object-fit: contain;
}

.form-control,
.textbox-dg,
.custom-file-label {
    min-height: 46px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

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

.form-control:focus {
    color: #fff;
    border-color: rgba(236, 28, 36, 0.72);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 0.2rem rgba(236, 28, 36, 0.18);
}

label,
.control-label,
.form-label,
.text-muted {
    color: var(--muted) !important;
}

.btn {
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0;
    border: 0;
}

.btn-primary,
.logn-btn,
.btn-success,
.btn-info {
    color: #fff !important;
    background: linear-gradient(135deg, var(--red), var(--red-2)) !important;
    box-shadow: 0 14px 30px rgba(236, 28, 36, 0.22);
}

.btn-primary:hover,
.logn-btn:hover,
.btn-success:hover,
.btn-info:hover {
    color: #fff;
    filter: brightness(1.08);
}

.btn-warning {
    color: #111 !important;
    background: #f5c451 !important;
}

.btn-danger {
    color: #fff !important;
    background: #a80f18 !important;
}

.btn-dark,
.btn-secondary {
    background: #252b36 !important;
}

#button {
    margin: 10px 0 14px;
}

.modal-content {
    background: #0b0d13 !important;
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.login-shell {
    width: min(1060px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
    gap: 22px;
    align-items: stretch;
}

.login-brand-panel,
.login-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.88), rgba(7, 8, 12, 0.92));
    box-shadow: var(--shadow);
}

.login-brand-panel {
    min-height: 560px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 34px;
    overflow: hidden;
}

.login-brand-panel img {
    width: min(430px, 100%);
    filter: drop-shadow(0 30px 70px rgba(236, 28, 36, 0.34));
}

.login-brand-panel h1 {
    margin: 18px 0 6px;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
}

.login-brand-panel p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.login-card .brand-logo-small {
    width: 112px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 14px;
}

.login-card h2 {
    margin-bottom: 6px;
    font-size: 28px;
    font-weight: 900;
}

.login-card p {
    margin-bottom: 22px;
    color: var(--muted);
}

.login-card .btn {
    min-height: 48px;
}

video,
img {
    max-width: 100%;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .app-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 12px 10px;
    }

    .brand-block {
        min-height: auto;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 4px;
        padding: 10px 8px;
        text-align: center;
    }

    .brand-logo {
        width: 72px;
        height: 58px;
        grid-row: auto;
    }

    .brand-name,
    .brand-block small,
    .sidebar-link small,
    .sidebar-session {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sidebar-link {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 62px;
        padding: 8px 4px;
        text-align: center;
    }

    .sidebar-link i {
        grid-row: auto;
        width: 38px;
        height: 38px;
    }

    .sidebar-link span {
        font-size: 11px;
        line-height: 1.1;
    }

    .content-topbar {
        flex-direction: row;
        align-items: center;
        padding: 16px;
        min-height: 88px;
    }

    .panel-content {
        padding: 16px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .app-shell {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        padding: 10px 8px;
    }

    .brand-logo {
        width: 58px;
        height: 48px;
    }

    .sidebar-link {
        min-height: 56px;
        padding: 7px 3px;
    }

    .sidebar-link i {
        width: 34px;
        height: 34px;
    }

    .sidebar-link span {
        font-size: 10px;
    }

    .topbar-actions {
        flex-wrap: wrap;
    }

    .content-topbar h1 {
        font-size: 24px;
    }

    .panel-content,
    .content-topbar,
    .app-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-card,
    .login-brand-panel {
        padding: 22px;
    }
}
