:root {
    --ad-black: #050505;
    --ad-dark: #101010;
    --ad-card: #151515;
    --ad-card-2: #1c1c1c;
    --ad-border: #292929;
    --ad-white: #ffffff;
    --ad-muted: #a7a7a7;
    --ad-soft: #f5f5f5;
    --ad-danger: #dc3545;
    --ad-success: #198754;
    --ad-warning: #ffc107;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--ad-black);
    color: var(--ad-white);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 28%),
        linear-gradient(135deg, #050505, #111111);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(21,21,21,0.96);
    border: 1px solid var(--ad-border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.auth-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    display: block;
    margin: 0 auto 18px;
}

.logo-placeholder {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: #fff;
    color: #000;
    font-weight: 900;
    font-size: 32px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--ad-muted);
    text-align: center;
    margin-bottom: 24px;
}

.form-label {
    color: var(--ad-white);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    background: #0b0b0b;
    border: 1px solid var(--ad-border);
    color: var(--ad-white);
    border-radius: 12px;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    background: #0b0b0b;
    color: var(--ad-white);
    border-color: #ffffff;
    box-shadow: none;
}

.form-control::placeholder {
    color: #777;
}

.btn-premium {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    border-radius: 12px;
    min-height: 44px;
    font-weight: 800;
}

.btn-premium:hover {
    background: #e8e8e8;
    color: #000000;
}

.btn-outline-premium {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    min-height: 42px;
    font-weight: 700;
}

.btn-outline-premium:hover {
    background: #ffffff;
    color: #000000;
}

.btn-soft {
    background: #1f1f1f;
    border: 1px solid var(--ad-border);
    color: #ffffff;
    border-radius: 12px;
    min-height: 40px;
    font-weight: 700;
}

.btn-soft:hover {
    background: #ffffff;
    color: #000000;
}

.alert {
    border-radius: 12px;
}

.small-muted {
    color: var(--ad-muted);
    font-size: 13px;
}

.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    background: var(--ad-black);
}

.sidebar {
    width: 280px;
    background: #080808;
    border-right: 1px solid var(--ad-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-brand {
    padding: 22px;
    border-bottom: 1px solid var(--ad-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
}

.sidebar-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: #000;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.sidebar-company {
    font-weight: 900;
    font-size: 17px;
    line-height: 1.2;
}

.sidebar-role {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.sidebar-menu {
    padding: 14px;
}

.sidebar-section-title {
    color: #777;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 18px 10px 8px;
    font-weight: 800;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    color: #d9d9d9;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #ffffff;
    color: #000000;
}

.sidebar-link span:last-child {
    font-size: 12px;
    opacity: 0.8;
}

.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.topbar {
    height: 74px;
    border-bottom: 1px solid var(--ad-border);
    background: rgba(5,5,5,0.92);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
}

.topbar-title {
    font-weight: 900;
    font-size: 22px;
    margin: 0;
}

.topbar-subtitle {
    color: var(--ad-muted);
    font-size: 13px;
    margin-top: 2px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.profile-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.content-area {
    padding: 26px;
}

.card-premium {
    background: var(--ad-card);
    border: 1px solid var(--ad-border);
    border-radius: 20px;
    padding: 22px;
    color: var(--ad-white);
    box-shadow: 0 16px 45px rgba(0,0,0,0.24);
}

.stat-card {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-label {
    color: var(--ad-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.stat-value {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.stat-note {
    color: #cfcfcf;
    font-size: 13px;
}

.table-premium {
    color: #ffffff;
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-color: #ffffff;
    --bs-table-border-color: var(--ad-border);
    --bs-table-striped-bg: #111111;
    --bs-table-striped-color: #ffffff;
    --bs-table-hover-bg: #1f1f1f;
    --bs-table-hover-color: #ffffff;
}

.table-premium thead th {
    background: #101010;
    color: #a7a7a7;
    border-bottom: 1px solid var(--ad-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 14px;
}

.table-premium tbody td {
    background: transparent;
    color: #ffffff;
    border-bottom: 1px solid var(--ad-border);
    vertical-align: middle;
    padding: 14px;
}

.table-premium tbody tr:hover td {
    background: #1b1b1b;
}

.badge-status {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ad-border);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-label {
    color: var(--ad-muted);
    font-weight: 700;
}

.info-value {
    color: #ffffff;
    text-align: right;
    font-weight: 700;
}

.footer {
    color: var(--ad-muted);
    border-top: 1px solid var(--ad-border);
    padding: 18px 26px;
    font-size: 13px;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #000000;
        border: 0;
        border-radius: 12px;
        width: 42px;
        height: 42px;
        font-weight: 900;
    }

    .topbar {
        padding: 0 16px;
    }

    .content-area {
        padding: 18px;
    }

    .topbar-title {
        font-size: 18px;
    }

    .info-row {
        display: block;
    }

    .info-value {
        text-align: left;
        margin-top: 5px;
    }
}