:root {
    --ih-dash-black: #050708;
    --ih-dash-graphite: #0b1012;
    --ih-dash-panel: #101719;
    --ih-dash-panel-strong: #151e22;
    --ih-dash-text: #f5f7f7;
    --ih-dash-steel: #d8e2e4;
    --ih-dash-muted: #8fa1a5;
    --ih-dash-line: rgba(116, 154, 164, 0.3);
    --ih-dash-line-strong: rgba(25, 212, 230, 0.46);
    --ih-dash-cyan: #19d4e6;
    --ih-dash-cyan-deep: #0c8594;
    --ih-dash-amber: #f4a433;
    --ih-dash-danger: #e15752;
    --ih-dash-success: #48c78e;
    --ih-dash-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.ih-dashboard-page,
.ih-auth-page {
    min-height: 100vh;
    color: var(--ih-dash-steel);
    background:
        linear-gradient(90deg, rgba(5, 7, 8, 0.98), rgba(5, 7, 8, 0.9)),
        url("../../img/ironhand-tech-hero.jpg") center / cover fixed no-repeat;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
}

.ih-dashboard-page *,
.ih-auth-page * {
    letter-spacing: 0;
}

.ih-dashboard-page a {
    color: inherit;
}

.ih-dashboard-page #wrapper {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(5, 7, 8, 0.42), rgba(5, 7, 8, 0.94)),
        rgba(5, 7, 8, 0.78);
}

.ih-dashboard-page .sidebar {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(7, 11, 13, 0.98), rgba(5, 7, 8, 0.98)),
        var(--ih-dash-black) !important;
    border-right: 1px solid var(--ih-dash-line);
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.28);
}

.ih-dashboard-page .sidebar .sidebar-brand {
    height: 5.4rem;
    margin: 0 0.75rem;
    border-bottom: 1px solid var(--ih-dash-line);
}

.ih-dashboard-page #responsivelogo {
    width: 154px;
    height: 40px;
    background-image: url("../../img/logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0 18px rgba(25, 212, 230, 0.18));
}

.ih-dashboard-page .sidebar-divider {
    border-top-color: var(--ih-dash-line) !important;
}

.ih-dashboard-page .sidebar-dark .nav-item .nav-link {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 2px 10px;
    padding: 0.74rem 0.9rem;
    color: var(--ih-dash-muted);
    border: 1px solid transparent;
    border-radius: 8px;
}

.ih-dashboard-page .sidebar-dark .nav-item .nav-link i {
    width: 18px;
    color: var(--ih-dash-cyan);
    text-align: center;
}

.ih-dashboard-page .sidebar-dark .nav-item.active .nav-link,
.ih-dashboard-page .sidebar-dark .nav-item .nav-link:hover,
.ih-dashboard-page .sidebar-dark .nav-item .nav-link:focus {
    color: var(--ih-dash-text);
    background: rgba(25, 212, 230, 0.1);
    border-color: rgba(25, 212, 230, 0.18);
}

.ih-dashboard-page .sidebar .collapse-inner {
    margin: 0 12px 10px;
    padding: 8px !important;
    background: #0a0f11 !important;
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px !important;
}

.ih-dashboard-page .sidebar .collapse-header {
    color: var(--ih-dash-amber) !important;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.ih-dashboard-page .sidebar .collapse-item {
    color: var(--ih-dash-muted) !important;
    border-radius: 6px;
}

.ih-dashboard-page .sidebar .collapse-item:hover,
.ih-dashboard-page .sidebar .collapse-item:focus {
    color: var(--ih-dash-text) !important;
    background: rgba(25, 212, 230, 0.1) !important;
}

.ih-dashboard-page #content-wrapper {
    color: var(--ih-dash-steel);
    background: transparent !important;
}

.ih-dashboard-page #content {
    min-height: calc(100vh - 72px);
}

.ih-dashboard-page .topbar {
    min-height: 70px;
    margin: 18px 24px 0 !important;
    padding: 0 18px;
    color: var(--ih-dash-steel);
    background: rgba(6, 10, 11, 0.82) !important;
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
    box-shadow: var(--ih-dash-shadow) !important;
    backdrop-filter: blur(18px);
}

.ih-dashboard-page #headerTitle {
    margin: 0;
    color: var(--ih-dash-text);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 850;
}

.ih-dashboard-page .topbar .nav-link,
.ih-dashboard-page .topbar .text-gray-600 {
    color: var(--ih-dash-steel) !important;
}

.ih-dashboard-page .topbar-divider {
    border-right-color: var(--ih-dash-line) !important;
}

.ih-dashboard-page .ih-dashboard-language-switcher,
.ih-auth-page .ih-dashboard-language-switcher {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 38px;
    padding: 4px;
    background: rgba(10, 15, 17, 0.78);
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
}

.ih-auth-page .ih-dashboard-language-switcher {
    margin-bottom: 20px;
}

.ih-dashboard-page .ih-dashboard-language-switcher a,
.ih-auth-page .ih-dashboard-language-switcher a {
    min-width: 42px;
    min-height: 28px;
    padding: 4px 8px;
    color: var(--ih-dash-muted);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.ih-dashboard-page .ih-dashboard-language-switcher a:hover,
.ih-dashboard-page .ih-dashboard-language-switcher a:focus,
.ih-dashboard-page .ih-dashboard-language-switcher a.is-active,
.ih-auth-page .ih-dashboard-language-switcher a:hover,
.ih-auth-page .ih-dashboard-language-switcher a:focus,
.ih-auth-page .ih-dashboard-language-switcher a.is-active {
    color: var(--ih-dash-text);
    background: rgba(25, 212, 230, 0.1);
    border-color: rgba(25, 212, 230, 0.28);
}

.ih-dashboard-page .img-profile {
    border: 1px solid var(--ih-dash-line-strong);
    background: #0a0f11;
}

.ih-dashboard-page .container-fluid {
    max-width: 1480px;
    padding: 24px;
}

.ih-dashboard-page .container-fluid > .d-sm-flex:first-child {
    min-height: 118px;
    margin-bottom: 24px !important;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(16, 23, 25, 0.94), rgba(8, 12, 14, 0.86)),
        rgba(10, 14, 16, 0.9);
    border: 1px solid var(--ih-dash-line);
    border-left: 4px solid var(--ih-dash-cyan);
    border-radius: 8px;
    box-shadow: var(--ih-dash-shadow);
}

.ih-dashboard-page .container-fluid > .d-sm-flex:first-child::before {
    display: block;
    margin-bottom: 6px;
    color: var(--ih-dash-amber);
    content: "Operations console";
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ih-dashboard-page h1,
.ih-dashboard-page h2,
.ih-dashboard-page h3,
.ih-dashboard-page h4,
.ih-dashboard-page h5,
.ih-dashboard-page h6,
.ih-dashboard-page .text-gray-800 {
    color: var(--ih-dash-text) !important;
}

.ih-dashboard-page .text-gray-300,
.ih-dashboard-page .text-gray-400,
.ih-dashboard-page .text-muted {
    color: var(--ih-dash-muted) !important;
}

.ih-dashboard-page .text-primary,
.ih-dashboard-page .text-info,
.ih-dashboard-page .text-success {
    color: var(--ih-dash-cyan) !important;
}

.ih-dashboard-page .text-warning {
    color: var(--ih-dash-amber) !important;
}

.ih-dashboard-page .text-danger {
    color: #ffb8b5 !important;
}

.ih-dashboard-page .card {
    color: var(--ih-dash-steel);
    background:
        linear-gradient(180deg, rgba(16, 23, 25, 0.94), rgba(8, 12, 14, 0.94)),
        var(--ih-dash-panel) !important;
    border: 1px solid var(--ih-dash-line) !important;
    border-radius: 8px;
    box-shadow: var(--ih-dash-shadow) !important;
}

.ih-dashboard-page .card-header {
    color: var(--ih-dash-text);
    background: rgba(8, 13, 15, 0.96) !important;
    border-bottom: 1px solid var(--ih-dash-line) !important;
    border-radius: 8px 8px 0 0 !important;
}

.ih-dashboard-page .border-left-primary,
.ih-dashboard-page .border-left-info,
.ih-dashboard-page .border-left-success,
.ih-dashboard-page .border-left-warning,
.ih-dashboard-page .border-left-danger {
    border-left: 4px solid var(--ih-dash-cyan) !important;
}

.ih-dashboard-page .border-left-warning {
    border-left-color: var(--ih-dash-amber) !important;
}

.ih-dashboard-page .border-left-danger {
    border-left-color: var(--ih-dash-danger) !important;
}

.ih-dashboard-page .row > [class*="col-"] > .card.h-100 {
    min-height: 154px;
}

.ih-dashboard-page .table-responsive {
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
}

.ih-dashboard-page .ih-room-quick-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(8, 13, 15, 0.72);
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
}

.ih-dashboard-page .ih-room-quick-title {
    color: var(--ih-dash-text);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ih-dashboard-page .ih-room-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ih-dashboard-page .table {
    margin-bottom: 0;
    color: var(--ih-dash-steel);
    background: #080d0f;
}

.ih-dashboard-page .table th,
.ih-dashboard-page .table td {
    border-color: var(--ih-dash-line) !important;
    vertical-align: middle;
}

.ih-dashboard-page .table thead th {
    color: var(--ih-dash-text);
    background: #101719;
    border-bottom-color: var(--ih-dash-line-strong) !important;
}

.ih-dashboard-page .table-hover tbody tr:hover,
.ih-dashboard-page table.dataTable tbody tr:hover {
    color: var(--ih-dash-text);
    background: rgba(25, 212, 230, 0.08);
}

.ih-dashboard-page .dataTables_wrapper,
.ih-dashboard-page .dataTables_info,
.ih-dashboard-page .dataTables_length,
.ih-dashboard-page .dataTables_filter,
.ih-dashboard-page .page-link {
    color: var(--ih-dash-steel) !important;
}

.ih-dashboard-page .page-link {
    background: #101719;
    border-color: var(--ih-dash-line);
}

.ih-dashboard-page .page-item.active .page-link {
    color: #061012 !important;
    background: var(--ih-dash-cyan);
    border-color: var(--ih-dash-cyan);
}

.ih-dashboard-page .form-control,
.ih-dashboard-page .custom-select,
.ih-dashboard-page select,
.ih-dashboard-page textarea,
.ih-dashboard-page input[type="text"],
.ih-dashboard-page input[type="password"],
.ih-dashboard-page input[type="email"],
.ih-dashboard-page input[type="number"],
.ih-auth-page .form-control {
    min-height: 42px;
    color: var(--ih-dash-text) !important;
    background: rgba(2, 5, 6, 0.82) !important;
    border: 1px solid var(--ih-dash-line) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.ih-dashboard-page .form-control:focus,
.ih-dashboard-page .custom-select:focus,
.ih-dashboard-page select:focus,
.ih-dashboard-page textarea:focus,
.ih-auth-page .form-control:focus {
    border-color: var(--ih-dash-cyan) !important;
    box-shadow: 0 0 0 3px rgba(25, 212, 230, 0.18) !important;
}

.ih-dashboard-page .form-control::placeholder,
.ih-auth-page .form-control::placeholder {
    color: #6d7f83;
}

.ih-dashboard-page label,
.ih-dashboard-page .form-group h6 {
    color: var(--ih-dash-steel);
}

.ih-dashboard-page .btn,
.ih-auth-page .btn {
    border-radius: 6px;
    font-weight: 800;
}

.ih-dashboard-page .btn-primary,
.ih-auth-page .btn-primary {
    color: #061012 !important;
    background: var(--ih-dash-cyan) !important;
    border-color: var(--ih-dash-cyan) !important;
}

.ih-dashboard-page .btn-primary:hover,
.ih-dashboard-page .btn-primary:focus,
.ih-auth-page .btn-primary:hover,
.ih-auth-page .btn-primary:focus {
    color: #ffffff !important;
    background: var(--ih-dash-cyan-deep) !important;
    border-color: var(--ih-dash-cyan-deep) !important;
}

.ih-dashboard-page .btn-secondary,
.ih-auth-page .btn-secondary {
    color: var(--ih-dash-text) !important;
    background: #1d282c !important;
    border-color: var(--ih-dash-line-strong) !important;
}

.ih-dashboard-page .badge {
    border-radius: 6px;
}

.ih-dashboard-page .badge-success {
    color: #061012;
    background: var(--ih-dash-success);
}

.ih-dashboard-page .badge-warning {
    color: #061012;
    background: var(--ih-dash-amber);
}

.ih-dashboard-page .badge-danger {
    background: var(--ih-dash-danger);
}

.ih-dashboard-page .dropdown-menu,
.ih-dashboard-page .modal-content {
    color: var(--ih-dash-steel);
    background: var(--ih-dash-panel-solid, #101719);
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
    box-shadow: var(--ih-dash-shadow);
}

.ih-dashboard-page .dropdown-item {
    color: var(--ih-dash-steel);
}

.ih-dashboard-page .dropdown-item:hover,
.ih-dashboard-page .dropdown-item:focus {
    color: var(--ih-dash-text);
    background: rgba(25, 212, 230, 0.1);
}

.ih-dashboard-page .dropdown-divider,
.ih-dashboard-page .modal-header,
.ih-dashboard-page .modal-footer,
.ih-dashboard-page .border-top {
    border-color: var(--ih-dash-line) !important;
}

.ih-dashboard-page .alert {
    color: var(--ih-dash-steel);
    background: rgba(16, 23, 25, 0.94);
    border-color: var(--ih-dash-line);
    border-radius: 8px;
}

.ih-dashboard-page .alert-success {
    border-color: rgba(72, 199, 142, 0.52);
}

.ih-dashboard-page .alert-danger {
    border-color: rgba(225, 87, 82, 0.62);
}

.ih-dashboard-page .alert-warning {
    border-color: rgba(244, 164, 51, 0.62);
}

.ih-dashboard-page .ih-theme-preview {
    --preview-body-bg: #ececec;
    --preview-main-bg: #484d75;
    --preview-main-text: #ffffff;
    --preview-video-bg: #ffffff;
    --preview-chat-bg: #ffffff;
    --preview-chat-active: #efefef;
    --preview-left-msg: #d9d9d9;
    --preview-right-msg: #48b0f7;
    --preview-chat-text: #444444;
    --preview-body-image: none;
    --preview-video-image: none;
    overflow: hidden;
    min-height: 360px;
    color: var(--preview-main-text);
    background:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22)),
        var(--preview-body-image),
        var(--preview-body-bg);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
}

.ih-dashboard-page .ih-theme-preview__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 16px;
    background: var(--preview-main-bg);
}

.ih-dashboard-page .ih-theme-preview__brand {
    font-weight: 900;
}

.ih-dashboard-page .ih-theme-preview__pill {
    padding: 3px 8px;
    color: #081012;
    background: var(--preview-main-text);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 850;
}

.ih-dashboard-page .ih-theme-preview__stage {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr);
    gap: 12px;
    padding: 16px;
}

.ih-dashboard-page .ih-theme-preview__tile {
    display: grid;
    min-height: 116px;
    place-items: center;
    color: var(--preview-chat-text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.26)),
        var(--preview-video-image),
        var(--preview-video-bg);
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    font-weight: 850;
}

.ih-dashboard-page .ih-theme-preview__tile-main {
    min-height: 184px;
}

.ih-dashboard-page .ih-theme-preview__chat {
    display: grid;
    gap: 8px;
    margin: 0 16px 16px;
    padding: 12px;
    color: var(--preview-chat-text);
    background: var(--preview-chat-bg);
    border: 1px solid var(--preview-chat-active);
    border-radius: 8px;
}

.ih-dashboard-page .ih-theme-preview__message {
    max-width: 76%;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 800;
}

.ih-dashboard-page .ih-theme-preview__message-left {
    background: var(--preview-left-msg);
}

.ih-dashboard-page .ih-theme-preview__message-right {
    justify-self: end;
    color: var(--preview-main-text);
    background: var(--preview-right-msg);
}

.ih-dashboard-page .ih-widget-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(25, 212, 230, 0.08), rgba(244, 164, 51, 0.08)),
        rgba(8, 12, 14, 0.9);
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
}

.ih-dashboard-page footer.sticky-footer {
    margin: 0 24px 18px;
    color: var(--ih-dash-muted);
    background: rgba(5, 7, 8, 0.9) !important;
    border: 1px solid var(--ih-dash-line);
    border-radius: 8px;
}

.ih-dashboard-page .scroll-to-top {
    color: #061012;
    background: var(--ih-dash-cyan);
    border-radius: 8px !important;
}

.ih-auth-page {
    display: grid;
    align-items: center;
    padding: 24px;
}

.ih-auth-page::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 80%);
}

.ih-auth-page .container {
    position: relative;
    z-index: 1;
}

.ih-auth-page .card {
    overflow: hidden;
    color: var(--ih-dash-steel);
    background:
        linear-gradient(180deg, rgba(16, 23, 25, 0.96), rgba(8, 12, 14, 0.96)),
        var(--ih-dash-panel) !important;
    border: 1px solid var(--ih-dash-line) !important;
    border-left: 4px solid var(--ih-dash-cyan) !important;
    border-radius: 8px !important;
    box-shadow: var(--ih-dash-shadow) !important;
}

.ih-auth-page .bg-login-image {
    min-height: 420px;
    background:
        linear-gradient(90deg, rgba(5, 7, 8, 0.14), rgba(5, 7, 8, 0.58)),
        url("../../img/ironhand-tech-hero.jpg") center / cover no-repeat !important;
}

.ih-auth-page .p-5::before {
    display: block;
    margin-bottom: 22px;
    color: var(--ih-dash-text);
    content: "Ironhand Meets";
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 0.95;
}

.ih-auth-page .p-5::after {
    display: block;
    margin-top: 18px;
    color: var(--ih-dash-amber);
    content: "Dashboard command layer";
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ih-auth-page h4,
.ih-auth-page a {
    color: var(--ih-dash-text);
}

.ih-auth-page a:hover,
.ih-auth-page a:focus {
    color: var(--ih-dash-cyan);
}

.ih-auth-page #error,
.ih-auth-page #message {
    margin-left: 0;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .ih-dashboard-page .topbar {
        margin: 12px 12px 0 !important;
    }

    .ih-dashboard-page .container-fluid {
        padding: 16px 12px;
    }

    .ih-dashboard-page footer.sticky-footer {
        margin: 0 12px 12px;
    }

    .ih-auth-page {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .ih-dashboard-page .ih-room-quick-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ih-dashboard-page .ih-room-quick-buttons {
        justify-content: flex-start;
    }

    .ih-dashboard-page #roomOccurrences {
        width: 100% !important;
    }

    .ih-dashboard-page #responsivelogo,
    .ih-dashboard-page .sidebar.toggled #responsivelogo {
        width: 44px;
        height: 44px;
        background-image: url("../../img/logo_small.png");
    }

    .ih-dashboard-page .sidebar .sidebar-brand {
        height: 4.8rem;
        margin: 0 0.35rem;
    }
}
