:root {
    --noc-bg: #070d18;
    --noc-surface: #0d1626;
    --noc-surface-2: #111d30;
    --noc-surface-3: #172338;
    --noc-border: #25344b;

    --noc-text: #f1f5f9;
    --noc-muted: #8fa1b8;

    --noc-blue: #3b82f6;
    --noc-blue-hover: #2563eb;

    --noc-critical: #ef4444;
    --noc-high: #f59e0b;
    --noc-medium: #eab308;
    --noc-success: #22c55e;
}

html {
    font-size: 14px;
    background: var(--noc-bg);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
}

.noc-body {
    background:
        radial-gradient(
            circle at 70% 0%,
            rgba(37, 99, 235, .12),
            transparent 34%
        ),
        var(--noc-bg);

    color: var(--noc-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.noc-layout {
    display: flex;
    min-height: 100vh;
}


/* ==============================
   Sidebar
   ============================== */

.noc-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #09162a 0%,
            #07111f 55%,
            #050b14 100%
        );

    border-right: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 12px 0 35px rgba(0, 0, 0, .2);

    color: #fff;
    z-index: 1030;
}

.noc-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 94px;
    padding: 18px 20px;

    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.noc-logo {
    width: 78px;
    height: auto;
    display: block;
}

.noc-brand-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.noc-brand-subtitle {
    margin-top: 5px;
    color: #7f93ad;
    font-size: 11px;
}

.noc-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 20px 14px;
}

.noc-nav-link {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 14px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #afbed0;
    text-decoration: none;
    font-size: 14px;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.noc-nav-link:hover {
    color: #fff;
    background: rgba(59, 130, 246, .14);
    border-color: rgba(96, 165, 250, .25);
    transform: translateX(3px);
}

.noc-nav-link:focus {
    color: #fff;
}

.noc-nav-icon {
    width: 21px;
    color: #67a3ff;
    text-align: center;
}

.noc-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: auto;
    padding: 20px;

    border-top: 1px solid rgba(148, 163, 184, .13);
}

.noc-status-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: var(--noc-success);

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, .09),
        0 0 14px rgba(34, 197, 94, .7);
}

.noc-status-title {
    color: #eaf0f7;
    font-size: 13px;
    font-weight: 600;
}

.noc-status-text {
    color: #7f93ad;
    font-size: 11px;
}


/* ==============================
   Main application area
   ============================== */

.noc-main {
    width: 100%;
    min-width: 0;
}

@media (min-width: 992px) {
    .noc-main {
        margin-left: 270px;
    }
}

.noc-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;

    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 28px;

    background: rgba(9, 16, 29, .92);
    border-bottom: 1px solid var(--noc-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

    backdrop-filter: blur(16px);
}

.noc-topbar-title {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 650;
}

.noc-topbar-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.noc-topbar-link {
    color: #75aaff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.noc-topbar-link:hover {
    color: #a9c8ff;
}

.noc-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.noc-user-avatar {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border: 1px solid #315386;
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #1d4ed8,
            #102544
        );

    color: #fff;
    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 0 18px rgba(37, 99, 235, .24);
}

.noc-user-name {
    color: #eef4fb;
    font-size: 13px;
    font-weight: 650;
}

.noc-user-role {
    margin-top: 1px;
    color: #7f93ad;
    font-size: 11px;
}

.noc-content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 30px;
}

.noc-footer {
    padding: 22px 30px;

    color: #61738c;
    text-align: center;
    font-size: 12px;
}


/* ==============================
   Mobile navigation
   ============================== */

.noc-mobile-header {
    display: none;
}

.noc-mobile-sidebar {
    width: 270px !important;

    background: #07111f;
    color: #fff;

    border-right: 1px solid var(--noc-border);
}

.noc-menu-button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
}

.noc-mobile-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.offcanvas-header {
    border-bottom: 1px solid var(--noc-border);
}

@media (max-width: 991.98px) {
    .noc-layout {
        display: block;
    }

    .noc-mobile-header {
        position: sticky;
        top: 0;
        z-index: 1040;

        display: flex;
        align-items: center;
        gap: 15px;

        min-height: 62px;
        padding: 10px 18px;

        background: #07111f;
        border-bottom: 1px solid var(--noc-border);
    }

    .noc-topbar {
        top: 62px;
        padding: 10px 18px;
    }

    .noc-content {
        padding: 20px 14px;
    }

    .noc-topbar-link {
        display: none;
    }
}


/* ==============================
   Page headings
   ============================== */

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;

    color: #f8fafc;
    font-size: 28px;
    font-weight: 700;
}

.page-heading p {
    margin: 8px 0 0;
    color: var(--noc-muted);
}


/* ==============================
   Cards
   ============================== */

.noc-card {
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(18, 31, 51, .98),
            rgba(12, 22, 38, .98)
        );

    border: 1px solid var(--noc-border);
    border-radius: 13px;

    box-shadow:
        0 14px 45px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.noc-card-header {
    padding: 17px 20px;

    background: rgba(23, 35, 56, .7);
    border-bottom: 1px solid var(--noc-border);

    color: #f1f5f9;
    font-size: 15px;
    font-weight: 650;
}

.noc-card-body {
    padding: 20px;
    color: #dbe5f0;
}


/* ==============================
   Alerts
   ============================== */

.noc-alert-warning {
    padding: 16px 18px;

    border: 1px solid rgba(245, 158, 11, .48);
    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            rgba(120, 53, 15, .36),
            rgba(87, 43, 14, .2)
        );

    color: #fcd58c;
}

.alert-danger {
    color: #fecaca;
    background: rgba(127, 29, 29, .34);
    border-color: rgba(239, 68, 68, .5);
}

.alert-success {
    color: #bbf7d0;
    background: rgba(20, 83, 45, .34);
    border-color: rgba(34, 197, 94, .45);
}


/* ==============================
   Buttons
   ============================== */

.noc-btn-primary,
.btn-primary {
    padding: 10px 18px;

    border: 1px solid #4d8dff;
    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            #3b82f6,
            #2563eb
        );

    color: #fff;
    font-weight: 600;

    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.noc-btn-primary:hover,
.btn-primary:hover {
    background:
        linear-gradient(
            180deg,
            #4a8df8,
            #1d4ed8
        );

    border-color: #60a5fa;
    color: #fff;
}

.noc-btn-secondary,
.btn-secondary {
    padding: 10px 18px;

    border: 1px solid #394a61;
    border-radius: 7px;

    background: #172338;
    color: #dce6f1;

    font-weight: 600;
}

.noc-btn-secondary:hover,
.btn-secondary:hover {
    background: #1e2c43;
    color: #fff;
}


/* ==============================
   Forms
   ============================== */

.form-label {
    color: #b8c5d6;
    font-size: 13px;
    font-weight: 600;
}

.form-control,
.form-select {
    color: #edf4fc;

    background: #091321;
    border: 1px solid #304057;
    border-radius: 7px;
}

.form-control:focus,
.form-select:focus {
    color: #fff;

    background: #0b1728;
    border-color: #4b8ef7;

    box-shadow:
        0 0 0 .2rem rgba(59, 130, 246, .16);
}

.form-control::placeholder {
    color: #63758d;
}

.form-control:disabled,
.form-select:disabled {
    background: #101b2b;
    color: #697b92;
}


/* ==============================
   Tables
   ============================== */

.table {
    --bs-table-color: #dbe5f0;
    --bs-table-bg: transparent;
    --bs-table-border-color: #293a50;
    --bs-table-striped-bg: rgba(255, 255, 255, .018);
    --bs-table-striped-color: #dbe5f0;
    --bs-table-hover-bg: rgba(59, 130, 246, .08);
    --bs-table-hover-color: #fff;

    color: #dbe5f0;
}

.table thead th {
    color: #94a7bd;
    background: rgba(19, 32, 51, .9);

    border-bottom-color: #33465f;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.table td,
.table th {
    padding: 12px 14px;
    vertical-align: middle;
}


/* ==============================
   Badges
   ============================== */

.noc-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.noc-badge-critical {
    color: #fecaca;
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(239, 68, 68, .35);
}

.noc-badge-high {
    color: #fde68a;
    background: rgba(245, 158, 11, .13);
    border: 1px solid rgba(245, 158, 11, .35);
}

.noc-badge-medium {
    color: #fef08a;
    background: rgba(234, 179, 8, .12);
    border: 1px solid rgba(234, 179, 8, .32);
}

.noc-badge-success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .32);
}


/* ==============================
   General Bootstrap cleanup
   ============================== */

a {
    color: #76aaff;
}

a:hover {
    color: #a7c8ff;
}

hr {
    border-color: var(--noc-border);
    opacity: 1;
}

.text-muted {
    color: var(--noc-muted) !important;
}

.modal-content {
    color: var(--noc-text);
    background: var(--noc-surface);
    border: 1px solid var(--noc-border);
}

.modal-header,
.modal-footer {
    border-color: var(--noc-border);
}

.dropdown-menu {
    color: var(--noc-text);
    background: var(--noc-surface-2);
    border: 1px solid var(--noc-border);
}

.dropdown-item {
    color: #dbe5f0;
}

.dropdown-item:hover {
    color: #fff;
    background: rgba(59, 130, 246, .12);
}

/* Primary buttons */
.noc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    white-space: nowrap;
}

/* Secondary buttons */
.noc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    white-space: nowrap;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-header {
    color: #91a5bf;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.calendar-header > div {
    padding: 12px;
    border: 1px solid var(--noc-border);
    background: #101b2b;
}

.calendar-day {
    min-height: 135px;
    padding: 10px;
    border: 1px solid var(--noc-border);
    background: #0d1829;
}

.calendar-day-muted {
    opacity: .35;
}

.calendar-day-number {
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 700;
}

.calendar-event {
    margin-bottom: 6px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
}

.calendar-event-oncall {
    color: #dbeafe;
    background: rgba(59, 130, 246, .2);
    border: 1px solid rgba(96, 165, 250, .4);
}

@media (max-width: 900px) {
    .calendar-grid {
        min-width: 900px;
    }

    .noc-card-body {
        overflow-x: auto;
    }
}