﻿:root {
    --bg-0: #071019;
    --bg-1: #0b1b29;
    --bg-2: #12263a;
    --surface: rgba(14, 30, 44, 0.88);
    --surface-soft: rgba(14, 30, 44, 0.72);
    --line: rgba(132, 188, 221, 0.28);
    --line-soft: rgba(132, 188, 221, 0.16);
    --text: #eaf4fd;
    --muted: #9db4c7;
    --muted-2: #7f9aad;
    --accent: #4ab6ff;
    --accent-soft: rgba(74, 182, 255, 0.2);
    --ok: #2ecd98;
    --warn: #f4bd62;
    --danger: #ff5f7f;
    --danger-soft: rgba(255, 95, 127, 0.2);
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.45;
    background:
        radial-gradient(circle at 8% 12%, rgba(74, 182, 255, 0.16), transparent 34%),
        radial-gradient(circle at 94% 8%, rgba(255, 126, 146, 0.12), transparent 30%),
        linear-gradient(130deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2));
    background-attachment: fixed;
}

main.container-fluid {
    max-width: 1820px;
    position: relative;
    z-index: 1;
}

a {
    color: #bde8ff;
}

a:hover {
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.page-head .h3,
.page-head h1,
.panel-title,
.metric-value,
.badge-threat {
    font-family: 'Outfit', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.03em;
}

code {
    color: #ffd8a8;
    background: rgba(8, 20, 30, 0.9);
    border: 1px solid rgba(255, 216, 168, 0.18);
    border-radius: 6px;
    padding: 0.08rem 0.34rem;
}

::selection {
    background: rgba(74, 182, 255, 0.34);
}

:focus-visible {
    outline: 2px solid rgba(74, 182, 255, 0.72);
    outline-offset: 2px;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.012) 0,
        rgba(255, 255, 255, 0.012) 10px,
        rgba(0, 0, 0, 0.035) 10px,
        rgba(0, 0, 0, 0.035) 20px
    );
    opacity: 0.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0, rgba(93, 186, 255, 0.1), transparent 45%);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.glass-nav {
    position: relative;
    margin: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(11, 24, 36, 0.94), rgba(12, 27, 40, 0.84));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    animation: fade-up 0.42s ease;
}

.navbar.glass-nav::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(164, 219, 250, 0.7), transparent);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-mark {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #66cbff, #4ab6ff);
    box-shadow: 0 0 14px rgba(74, 182, 255, 0.7);
}

.navbar .nav-link {
    color: #d8edf8;
    opacity: 0.92;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(84, 190, 252, 0.45);
}

.page-head {
    position: relative;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(13, 30, 44, 0.9), rgba(13, 30, 44, 0.7));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    animation: fade-up 0.5s ease;
}

.page-head::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 12px;
    bottom: 10px;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(74, 182, 255, 0.85), rgba(74, 182, 255, 0));
}

.page-head .h3,
.page-head h1 {
    margin-bottom: 4px;
    font-size: clamp(1.08rem, 1.7vw, 1.5rem);
    text-transform: uppercase;
}

.page-head .h3 i,
.page-head h1 i {
    color: #a4ddff;
}

.page-head p {
    margin-bottom: 0;
    max-width: 72ch;
    color: var(--muted);
    font-size: 0.95rem;
}

.page-head .form-select-sm {
    min-width: 160px;
}

.status-pills .badge {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.48rem 0.72rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-threat {
    color: #f4fbff;
}

.threat-low {
    background: linear-gradient(135deg, rgba(31, 120, 167, 0.95), rgba(24, 98, 139, 0.95));
}

.threat-medium {
    background: linear-gradient(135deg, rgba(163, 125, 44, 0.95), rgba(134, 99, 31, 0.95));
}

.threat-high {
    background: linear-gradient(135deg, rgba(171, 92, 38, 0.96), rgba(139, 68, 24, 0.96));
}

.threat-critical {
    background: linear-gradient(135deg, rgba(170, 49, 78, 0.98), rgba(141, 33, 60, 0.98));
    box-shadow: 0 0 20px rgba(255, 95, 127, 0.32);
}

#openAlertsCount {
    min-width: 34px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.badge.text-bg-success {
    background: linear-gradient(135deg, rgba(31, 142, 103, 0.95), rgba(23, 116, 84, 0.95)) !important;
    color: #ebfff8 !important;
}

.badge.text-bg-danger {
    background: linear-gradient(135deg, rgba(182, 52, 83, 0.98), rgba(148, 38, 65, 0.98)) !important;
    color: #ffebf0 !important;
}

.badge.text-bg-warning {
    background: linear-gradient(135deg, rgba(194, 146, 57, 0.96), rgba(160, 115, 35, 0.96)) !important;
}

.badge.text-bg-secondary {
    background: linear-gradient(135deg, rgba(72, 101, 121, 0.94), rgba(59, 85, 102, 0.94)) !important;
}

.badge.text-bg-info {
    background: linear-gradient(135deg, rgba(42, 129, 177, 0.96), rgba(30, 105, 150, 0.96)) !important;
}

.badge.text-bg-dark {
    background: linear-gradient(135deg, rgba(25, 43, 56, 0.96), rgba(18, 32, 42, 0.96)) !important;
}

.card,
.glass-card,
.metric-card {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(14, 30, 44, 0.94), rgba(14, 30, 44, 0.72));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    animation: fade-up 0.45s ease;
}

.card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 198, 232, 0.4);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
}

.card-header {
    border-bottom: 1px solid rgba(172, 220, 247, 0.12);
    color: var(--text);
    background: linear-gradient(180deg, rgba(14, 32, 47, 0.94), rgba(14, 32, 47, 0.74));
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.8rem 0.95rem;
}

.panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.panel-title i {
    color: #95daff;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 152px;
}

.metric-card::after {
    content: '';
    position: absolute;
    right: -52px;
    top: -52px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 182, 255, 0.24), transparent 70%);
}

.metric-card .card-body {
    min-height: 150px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.metric-label {
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(140, 202, 236, 0.34);
    background: rgba(11, 30, 43, 0.72);
    color: #bce8ff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-value {
    min-height: 2rem;
    display: flex;
    align-items: center;
    font-size: clamp(1.28rem, 1.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f2fbff;
}

.metric-sub {
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 0.8rem;
}

.metric-card.is-neutral {
    border-color: rgba(132, 188, 221, 0.26);
}

.metric-card.is-ok {
    border-color: rgba(46, 205, 152, 0.46);
    box-shadow: 0 0 0 1px rgba(46, 205, 152, 0.08), var(--shadow);
}

.metric-card.is-warning {
    border-color: rgba(244, 189, 98, 0.56);
    box-shadow: 0 0 0 1px rgba(244, 189, 98, 0.1), var(--shadow);
}

.metric-card.is-danger {
    border-color: rgba(255, 95, 127, 0.58);
    box-shadow: 0 0 0 1px rgba(255, 95, 127, 0.14), var(--shadow);
}

.metric-card.is-warning .metric-value {
    color: #ffe3b8;
}

.metric-card.is-danger .metric-value {
    color: #ffd0da;
}

.dashboard-main-row {
    align-items: flex-start;
}

.page-dashboard main.container-fluid {
    height: calc(100vh - 106px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-dashboard .dashboard-screens-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.page-dashboard .dashboard-screens-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 260ms ease;
}

.page-dashboard .dashboard-screen {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    padding-right: 10px;
    overflow: hidden;
}

.page-dashboard .dashboard-screen-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-dashboard .dashboard-screen-camera .dashboard-camera-card {
    min-height: 0;
}

.page-dashboard .dashboard-screen-dots {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: grid;
    gap: 10px;
}

.page-dashboard .screen-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(170, 221, 247, 0.62);
    background: rgba(17, 40, 56, 0.75);
    padding: 0;
    cursor: pointer;
}

.page-dashboard .screen-dot.is-active {
    background: rgba(74, 182, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(74, 182, 255, 0.18);
}

.page-dashboard .page-head {
    margin-bottom: 0.8rem !important;
}

.page-dashboard #statusCards {
    margin-bottom: 0.8rem !important;
}

.page-dashboard .metric-card {
    min-height: 122px;
}

.page-dashboard .metric-card .card-body {
    min-height: 118px;
    padding: 0.68rem 0.85rem;
}

.page-dashboard .metric-value {
    min-height: 1.6rem;
    font-size: clamp(1rem, 1.2vw, 1.36rem);
}

.page-dashboard .metric-sub {
    margin-top: 3px;
    font-size: 0.74rem;
}

.page-dashboard .dashboard-main-row {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0 !important;
}

.page-dashboard .dashboard-card {
    height: 100%;
    min-height: 0;
}

.page-dashboard .dashboard-actions-card,
.page-dashboard .dashboard-alerts-card {
    height: 100%;
    min-height: 0;
}

.page-dashboard .dashboard-actions-grid {
    gap: 0.56rem;
}

.page-dashboard .dashboard-actions-grid .btn {
    padding: 0.56rem 0.8rem;
    font-size: 0.82rem;
}

.page-dashboard .alerts-scroll {
    max-height: 100%;
}

.page-dashboard .dashboard-alerts-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.page-dashboard #alertList {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable both-edges;
    padding-right: 0.32rem;
}

.page-dashboard .camera-frame-wrap {
    min-height: 0;
    height: 100%;
}

.page-dashboard .frame-live {
    max-height: 100%;
}

.dashboard-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
}

.dashboard-actions-card {
    min-height: 390px;
}

.dashboard-alerts-card {
    height: clamp(350px, 50vh, 510px);
}

.dashboard-events-card {
    height: clamp(360px, 52vh, 550px);
}

.dashboard-camera-card {
    min-height: 450px;
}

.dashboard-actions-grid {
    display: grid;
    gap: 0.72rem;
    align-content: start;
    grid-auto-rows: max-content;
}

.dashboard-actions-grid .btn {
    justify-content: flex-start;
    text-align: left;
    font-size: 0.9rem;
    padding: 0.68rem 0.9rem;
}

.quick-action[disabled],
.quick-action.disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.dashboard-alerts-card .card-body,
.dashboard-events-card .card-body {
    padding-top: 0.92rem;
    padding-bottom: 0.92rem;
}

.panel-scroll {
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 0.35rem;
}

.panel-scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(131, 191, 224, 0.5);
    border-radius: 99px;
}

.panel-scroll::-webkit-scrollbar-track {
    background: rgba(7, 20, 30, 0.65);
    border-radius: 99px;
}

.alerts-scroll {
    height: 100%;
    max-height: none;
    overflow-x: hidden;
}

.events-scroll {
    height: 100%;
    max-height: none;
}

.logs-table-wrap {
    max-height: 64vh;
}

.admin-table-wrap {
    max-height: 58vh;
}

.recent-clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.55rem;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.clip-preview-card {
    border: 1px solid rgba(153, 213, 245, 0.24);
    border-radius: 12px;
    background: rgba(10, 25, 37, 0.58);
    padding: 0.45rem;
    display: grid;
    gap: 0.38rem;
}

.clip-preview-video {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(166, 220, 248, 0.22);
    background: rgba(5, 14, 22, 0.86);
}

.clip-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.clip-preview-open {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbeeff;
    text-decoration: none;
}

.clip-preview-open:hover {
    color: #ffffff;
}

.empty-panel-note {
    color: var(--muted-2);
    font-size: 0.88rem;
    padding: 10px 6px;
}

.alert-item {
    position: relative;
    border: 1px solid rgba(153, 213, 245, 0.15);
    border-radius: 13px;
    padding: 13px 14px;
    background: linear-gradient(140deg, rgba(13, 30, 44, 0.9), rgba(13, 30, 44, 0.72));
}

.alert-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 13px 0 0 13px;
    background: var(--accent);
}

.alert-severity-info::before {
    background: var(--accent);
}

.alert-severity-warning::before {
    background: var(--warn);
}

.alert-severity-critical::before {
    background: var(--danger);
}

.alert-item .btn {
    white-space: nowrap;
    min-width: 106px;
}

.alert-message {
    font-size: 0.96rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.events-table {
    table-layout: fixed;
}

.events-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(13, 31, 44, 0.98);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bddff4;
}

.events-table th:first-child,
.events-table td:first-child {
    width: 40%;
}

.events-table th:nth-child(2),
.events-table td:nth-child(2) {
    width: 24%;
}

.events-table td {
    vertical-align: top;
    font-size: 0.9rem;
}

.event-type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.2rem 0.54rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.event-type-tag-info {
    background: rgba(74, 182, 255, 0.2);
    border-color: rgba(74, 182, 255, 0.5);
    color: #d6f2ff;
}

.event-type-tag-warning {
    background: rgba(244, 189, 98, 0.22);
    border-color: rgba(244, 189, 98, 0.5);
    color: #ffe3b6;
}

.event-type-tag-critical {
    background: var(--danger-soft);
    border-color: rgba(255, 95, 127, 0.48);
    color: #ffd1db;
}

.event-message {
    line-height: 1.34;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.log-message {
    line-height: 1.34;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.camera-frame-wrap {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(157, 214, 244, 0.2);
    background: linear-gradient(150deg, rgba(7, 18, 27, 0.76), rgba(11, 24, 36, 0.45));
    padding: 7px;
}

.frame-live {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(166, 220, 248, 0.2);
}

#noFrameLabel {
    color: var(--muted-2);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#mobilePreview {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(157, 214, 244, 0.22);
    background: rgba(8, 20, 30, 0.7);
}

.login-wrap {
    position: relative;
}

.login-wrap::before {
    content: '';
    position: absolute;
    inset: 8% 10%;
    border-radius: 22px;
    border: 1px solid rgba(132, 188, 221, 0.22);
    background: linear-gradient(140deg, rgba(11, 24, 36, 0.44), rgba(11, 24, 36, 0.18));
    z-index: 0;
    pointer-events: none;
}

.login-wrap > [class*='col-'] {
    position: relative;
    z-index: 1;
}

.login-entry-screen {
    position: relative;
    z-index: 2;
}

.login-card {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(132, 188, 221, 0.34);
    background: linear-gradient(150deg, rgba(14, 30, 44, 0.95), rgba(14, 30, 44, 0.8));
}

.modal-alert {
    border: 1px solid rgba(170, 221, 247, 0.22);
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(13, 31, 45, 0.98), rgba(24, 16, 22, 0.96));
    color: #fff;
}

.modal-backdrop {
    z-index: 3050 !important;
}

.modal {
    z-index: 3060 !important;
}

body:not(.modal-open) .modal-backdrop {
    display: none !important;
    pointer-events: none !important;
}

.page-dashboard .tech-overlay {
    display: none !important;
    pointer-events: none !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #eaf5fd;
    --bs-table-border-color: rgba(170, 217, 244, 0.12);
}

.table thead th {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b8d8ec;
}

.table td {
    font-size: 0.9rem;
}

.table-responsive {
    border-radius: 12px;
}

.form-label {
    margin-bottom: 0.36rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid rgba(153, 210, 242, 0.25);
    background: rgba(14, 31, 45, 0.86);
    color: #edf7fe;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(74, 182, 255, 0.76);
    box-shadow: 0 0 0 0.2rem rgba(74, 182, 255, 0.16);
    background: rgba(14, 31, 45, 0.96);
    color: #ffffff;
}

.btn {
    border-radius: 11px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-sm {
    border-radius: 10px;
}

.btn-primary {
    border: none;
    background: linear-gradient(135deg, #48b1f8, #2f8fd4);
}

.btn-danger {
    border: none;
    background: linear-gradient(135deg, #dc5a7a, #b53a5b);
}

.btn-warning {
    border: none;
    color: #111a23;
    background: linear-gradient(135deg, #f6c66e, #e5a84b);
}

.btn-success {
    border: none;
    background: linear-gradient(135deg, #32c88f, #25a876);
}

.btn-outline-light {
    color: #eef9ff;
    border-color: rgba(186, 225, 245, 0.48);
}

.btn-outline-light:hover {
    color: #ffffff;
    border-color: rgba(216, 238, 251, 0.74);
    background: rgba(194, 230, 248, 0.14);
}

.btn-outline-danger {
    color: #ffc5d1;
    border-color: rgba(244, 130, 151, 0.56);
}

.btn-outline-danger:hover {
    color: #ffffff;
    background: rgba(244, 112, 136, 0.16);
}

.btn-outline-warning {
    color: #ffe2b4;
    border-color: rgba(244, 189, 98, 0.56);
}

.btn-outline-warning:hover {
    color: #ffffff;
    background: rgba(244, 189, 98, 0.18);
}

.btn-outline-primary {
    color: #cbeeff;
    border-color: rgba(115, 198, 243, 0.58);
}

.btn-outline-primary:hover {
    color: #ffffff;
    background: rgba(74, 182, 255, 0.18);
}

.text-secondary {
    color: var(--muted) !important;
}

.alert {
    border-radius: 11px;
    border-width: 1px;
    font-weight: 600;
}

.toast-holder {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1080;
    display: grid;
    gap: 9px;
}

.page-login .page-head {
    display: none;
}

@media (max-width: 1400px) {
    .dashboard-alerts-card {
        height: clamp(340px, 48vh, 500px);
    }

    .dashboard-events-card {
        height: clamp(350px, 50vh, 520px);
    }
}

@media (max-width: 1200px) {
    .page-dashboard main.container-fluid {
        height: auto;
        overflow: visible;
        display: block;
    }

    .page-dashboard .dashboard-screens-shell {
        overflow: visible;
    }

    .page-dashboard .dashboard-screens-track {
        display: block;
        transform: none !important;
        height: auto;
    }

    .page-dashboard .dashboard-screen {
        width: auto;
        min-width: 0;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .page-dashboard .dashboard-screen + .dashboard-screen {
        margin-top: 1rem;
    }

    .page-dashboard .dashboard-screen-dots {
        display: none;
    }

    .dashboard-card {
        min-height: 0;
    }

    .dashboard-alerts-card,
    .dashboard-events-card,
    .dashboard-actions-card,
    .dashboard-camera-card {
        height: auto;
        min-height: 0;
    }

    .alerts-scroll,
    .events-scroll {
        height: auto;
        max-height: 360px;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 16px;
    }

    .metric-card .card-body {
        min-height: 142px;
    }

    .metric-value {
        font-size: 1.36rem;
    }

    .page-head {
        padding: 16px 16px 16px 18px;
    }
}

@media (max-width: 768px) {
    main.container-fluid {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .navbar.glass-nav {
        margin: 9px;
        border-radius: 14px;
    }

    .page-head {
        padding: 14px 14px 14px 16px;
    }

    .status-pills {
        width: 100%;
    }

    .status-pills .badge {
        flex: 1 1 120px;
    }

    .logs-table-wrap,
    .admin-table-wrap {
        max-height: 52vh;
    }

    .alerts-scroll,
    .events-scroll {
        max-height: 330px;
    }

    .recent-clips-grid {
        max-height: none;
        overflow: visible;
    }

    .login-wrap::before {
        inset: 10% 0;
    }
}
