/* ================================================================



   Domain Monitor — Professional Design System



   ================================================================ */

:root {
    --primary: #4f46e5;

    --primary-hover: #4338ca;

    --primary-light: #ede9fe;

    --success: #10b981;

    --success-light: #d1fae5;

    --danger: #ef4444;

    --danger-light: #fee2e2;

    --warning: #f59e0b;

    --warning-light: #fef3c7;

    --sidebar-bg: #0f172a;

    --sidebar-text: #94a3b8;

    --sidebar-hover: rgba(255, 255, 255, 0.055);

    --sidebar-width: 240px;

    --body-bg: #f8fafc;

    --card-bg: #ffffff;

    --card-border: #f1f5f9;

    --card-radius: 14px;

    --text-primary: #0f172a;

    --text-secondary: #475569;

    --text-muted: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ── Base ──────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    background: var(--body-bg);

    color: var(--text-primary);

    margin: 0;

    line-height: 1.5;
}

a {
    text-decoration: none;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Sidebar ───────────────────────────────────────────────────── */

.sidebar {
    position: fixed;

    inset: 0 auto 0 0;

    width: var(--sidebar-width);

    background: var(--sidebar-bg);

    display: flex;

    flex-direction: column;

    z-index: 1000;

    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);

    overflow: hidden;
}

.sidebar-logo {
    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding: 1.2rem 1rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 34px;
    height: 34px;

    background: var(--primary);

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 0.9rem;

    flex-shrink: 0;

    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.45);
}

.sidebar-logo-text {
    color: #fff;

    font-size: 0.92rem;

    font-weight: 700;

    letter-spacing: 0.01em;

    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;

    overflow-y: auto;

    padding: 0.6rem 0;
}

.sidebar-section-label {
    display: block;

    color: rgba(148, 163, 184, 0.4);

    font-size: 0.6rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    padding: 0.7rem 1rem 0.2rem;
}

.sidebar-nav .nav-link {
    display: flex;

    align-items: center;

    gap: 0.6rem;

    padding: 0.52rem 0.7rem;

    margin: 0.08rem 0.55rem;

    border-radius: 8px;

    color: var(--sidebar-text);

    font-size: 0.825rem;

    font-weight: 500;

    transition:
        background 0.15s,
        color 0.15s;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: var(--primary);

    color: #fff;

    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

.nav-icon {
    width: 18px;

    text-align: center;

    font-size: 0.85rem;

    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;

    background: rgba(255, 255, 255, 0.12);

    color: #fff;

    font-size: 0.63rem;

    padding: 0.1rem 0.38rem;

    border-radius: 20px;

    font-weight: 700;

    min-width: 20px;

    text-align: center;
}

.sidebar-footer {
    padding: 0.7rem;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    flex-shrink: 0;
}

.user-info {
    display: flex;

    align-items: center;

    gap: 0.6rem;

    padding: 0.45rem 0.55rem;

    border-radius: 8px;

    transition: background 0.15s;

    cursor: default;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;

    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    color: var(--sidebar-text);
    font-size: 0.67rem;
}

.logout-btn {
    color: var(--sidebar-text);

    font-size: 0.82rem;

    padding: 0.25rem 0.3rem;

    border-radius: 5px;

    transition:
        color 0.15s,
        background 0.15s;

    flex-shrink: 0;
}

.logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ── User footer dropdown ──────────────────────────────────────── */

.user-info-wrap {
    position: relative;
}

.user-info {
    cursor: pointer;
}

.user-menu-caret {
    color: var(--sidebar-text);

    font-size: 0.68rem;

    flex-shrink: 0;

    transition: transform 0.2s;
}

.user-info-wrap.open .user-menu-caret {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;

    position: absolute;

    bottom: calc(100% + 6px);

    left: 0;
    right: 0;

    background: #1e293b;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);

    z-index: 10;
}

.user-info-wrap.open .user-dropdown {
    display: block;
}

.user-dropdown-item {
    display: flex;

    align-items: center;

    gap: 0.55rem;

    padding: 0.6rem 0.85rem;

    font-size: 0.815rem;

    color: var(--sidebar-text);

    transition:
        background 0.14s,
        color 0.14s;

    text-decoration: none;
}

.user-dropdown-item i {
    width: 14px;
    text-align: center;
    font-size: 0.8rem;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.user-dropdown-item.active {
    color: #a5b4fc;
}

.user-dropdown-item.text-danger-item:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

/* ── Password show/hide toggle ─────────────────────────────────── */

.pwd-toggle {
    position: absolute;

    right: 0;
    top: 0;
    bottom: 0;

    background: none;

    border: none;

    padding: 0 0.7rem;

    color: var(--text-muted);

    cursor: pointer;

    font-size: 0.85rem;

    transition: color 0.15s;

    display: flex;
    align-items: center;
}

.pwd-toggle:hover {
    color: var(--primary);
}

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* ── Main Wrapper ──────────────────────────────────────────────── */

.main-wrapper {
    margin-left: var(--sidebar-width);

    min-height: 100vh;

    display: flex;

    flex-direction: column;
}

/* ── Page Header ───────────────────────────────────────────────── */

.page-header {
    background: #fff;

    border-bottom: 1px solid var(--card-border);

    padding: 0.9rem 1.5rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 800;

    box-shadow: var(--shadow-sm);

    flex-shrink: 0;
}

.page-title {
    font-size: 1.1rem;

    font-weight: 700;

    color: var(--text-primary);

    margin: 0;

    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.75rem;

    color: var(--text-muted);

    margin: 0.1rem 0 0;
}

/* ── Page Content ──────────────────────────────────────────────── */

.page-content {
    padding: 1.4rem;
    flex: 1;
}

/* ── Stat Cards ────────────────────────────────────────────────── */

.stat-card {
    background: var(--card-bg);

    border-radius: var(--card-radius);

    padding: 1.3rem;

    box-shadow: var(--shadow-sm);

    border: 1px solid var(--card-border);

    transition:
        transform 0.25s,
        box-shadow 0.25s;

    display: block;

    color: inherit;

    position: relative;

    overflow: hidden;
}

.stat-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--card-accent, #6d28d9);

    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.stat-card.total {
    --card-accent: #7c3aed;
}

.stat-card.up {
    --card-accent: #10b981;
}

.stat-card.down {
    --card-accent: #ef4444;
}

.stat-card.paused {
    --card-accent: #f59e0b;
}

.stat-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 0.75rem;
}

.stat-icon {
    width: 44px;
    height: 44px;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
}

.stat-icon.total {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon.up {
    background: #d1fae5;
    color: #059669;
}

.stat-icon.down {
    background: #fee2e2;
    color: #dc2626;
}

.stat-icon.paused {
    background: #fef3c7;
    color: #d97706;
}

.stat-number {
    font-size: 2.3rem;

    font-weight: 800;

    line-height: 1;

    color: var(--text-primary);

    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.07em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.stat-footer {
    margin-top: 0.85rem;

    padding-top: 0.65rem;

    border-top: 1px solid var(--card-border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 0.73rem;

    color: var(--text-muted);
}

/* ── Content Cards ─────────────────────────────────────────────── */

.content-card {
    background: var(--card-bg);

    border-radius: var(--card-radius);

    border: 1px solid var(--card-border);

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}

.card-header-custom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0.85rem 1.2rem;

    border-bottom: 1px solid var(--card-border);
}

.card-title-custom {
    font-size: 0.875rem;

    font-weight: 700;

    color: var(--text-primary);

    margin: 0;

    display: flex;

    align-items: center;

    gap: 0.4rem;
}

.card-title-custom i {
    color: var(--primary);
}

.card-body-custom {
    padding: 1.1rem 1.2rem;
}

/* ── Status Badges ─────────────────────────────────────────────── */

.status-badge {
    display: inline-flex;

    align-items: center;

    gap: 0.38rem;

    padding: 0.26rem 0.62rem;

    border-radius: 20px;

    font-size: 0.71rem;

    font-weight: 600;

    white-space: nowrap;
}

.status-badge.up {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.down {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.paused {
    background: #fef3c7;
    color: #92400e;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;

    flex-shrink: 0;

    position: relative;
}

.status-badge.up .status-dot::after {
    content: "";

    position: absolute;

    inset: -3px;

    border-radius: 50%;

    background: currentColor;

    animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;

    opacity: 0;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ── Uptime Bar ────────────────────────────────────────────────── */

.uptime-bar {
    height: 5px;

    background: #e2e8f0;

    border-radius: 3px;

    overflow: hidden;

    margin-top: 3px;
}

.uptime-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.uptime-fill.high {
    background: #10b981;
}

.uptime-fill.medium {
    background: #f59e0b;
}

.uptime-fill.low {
    background: #ef4444;
}

.uptime-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ── Response Time Pills ───────────────────────────────────────── */

.resp-time {
    font-family: "Courier New", monospace;

    font-size: 0.75rem;

    font-weight: 700;

    padding: 0.14rem 0.38rem;

    border-radius: 5px;
}

.resp-time.fast {
    background: #d1fae5;
    color: #065f46;
}

.resp-time.moderate {
    background: #fef3c7;
    color: #92400e;
}

.resp-time.slow {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Domain Cell ───────────────────────────────────────────────── */

.domain-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-fav {
    width: 22px;
    height: 22px;

    border-radius: 5px;

    background: #f1f5f9;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.58rem;

    color: var(--text-muted);

    flex-shrink: 0;
}

.domain-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
}

.domain-host {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Table ─────────────────────────────────────────────────────── */

.dm-table {
    width: 100%;
    margin: 0;
}

.dm-table thead th {
    background: #f8fafc;

    color: var(--text-muted);

    font-size: 0.67rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    padding: 0.65rem 1.1rem;

    border-bottom: 2px solid var(--card-border);

    border-top: none;

    white-space: nowrap;
}

.dm-table tbody td {
    padding: 0.8rem 1.1rem;

    border-bottom: 1px solid #f8fafc;

    vertical-align: middle;

    font-size: 0.835rem;
}

.dm-table tbody tr:last-child td {
    border-bottom: none;
}

.dm-table tbody tr:hover td {
    background: #fafbff;
}

/* DataTables overrides */

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;

    border-radius: 8px !important;

    padding: 0.38rem 0.7rem !important;

    font-size: 0.825rem;

    color: var(--text-primary);

    outline: none;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary) !important;

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* Per-page select: extra right padding so Bootstrap's SVG arrow doesn't overlap text */

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0 !important;

    border-radius: 8px !important;

    padding: 0.32rem 2rem 0.32rem 0.65rem !important;

    font-size: 0.825rem;

    color: var(--text-primary);

    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 6px !important;

    border-color: #e2e8f0 !important;

    color: var(--text-secondary) !important;

    font-size: 0.78rem;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: var(--primary) !important;

    border-color: var(--primary) !important;

    color: #fff !important;
}

/* "Showing 1–9 of 9" — padding so it doesn't sit flush against the table edge */

.dataTables_wrapper .dataTables_info {
    font-size: 0.76rem;

    color: var(--text-muted);

    padding: 0.65rem 1.1rem !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 0.5rem 1.1rem !important;
}

div.dataTables_wrapper div.dataTables_filter {
    margin-bottom: 0.5rem;
    margin-right: 20px;
}

div.dataTables_wrapper div.dataTables_length {
    margin-bottom: 0.5rem;
    margin-left: 20px;
}

/* ── Activity Feed ─────────────────────────────────────────────── */

.activity-item {
    display: flex;

    align-items: center;

    gap: 0.85rem;

    padding: 0.6rem 0;

    border-bottom: 1px solid #f8fafc;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 33px;
    height: 33px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.78rem;

    flex-shrink: 0;
}

.activity-icon.up {
    background: #d1fae5;
    color: #065f46;
}

.activity-icon.down {
    background: #fee2e2;
    color: #991b1b;
}

.activity-body {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Plan Usage ────────────────────────────────────────────────── */

.plan-usage-bar {
    height: 7px;

    background: #e2e8f0;

    border-radius: 4px;

    overflow: hidden;

    margin: 0.4rem 0 0.3rem;
}

.plan-usage-fill {
    height: 100%;

    background: linear-gradient(90deg, var(--primary), #818cf8);

    border-radius: 4px;

    transition: width 0.7s ease;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;

    font-size: 0.79rem;
    color: var(--text-secondary);

    margin-bottom: 0.28rem;
}

.plan-feature i {
    color: var(--success);
    font-size: 0.73rem;
}

/* ── Chart ─────────────────────────────────────────────────────── */

.chart-wrap {
    position: relative;
    height: 195px;
}

.chart-legend {
    list-style: none;
    padding: 0;
    margin: 0.7rem 0 0;
}

.chart-legend li {
    display: flex;
    align-items: center;
    gap: 0.45rem;

    font-size: 0.79rem;
    color: var(--text-secondary);

    margin-bottom: 0.38rem;
}

.chart-legend li:last-child {
    margin-bottom: 0;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-count {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* ── Empty State ───────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 2.2rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.3rem;
    margin-bottom: 0.65rem;
    display: block;
    opacity: 0.45;
}

.empty-state-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.empty-state-text {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 0.835rem;
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-sm {
    font-size: 0.77rem !important;
    padding: 0.3rem 0.62rem !important;
}

/* ── Alert ─────────────────────────────────────────────────────── */

.alert {
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.84rem;
}

/* ── Modal ─────────────────────────────────────────────────────── */

.modal-content {
    border: none !important;

    border-radius: 16px !important;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid var(--card-border) !important;

    padding: 1.1rem 1.4rem !important;

    border-radius: 16px 16px 0 0 !important;
}

.modal-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}

.form-control,
.form-select {
    border-radius: 8px !important;

    border: 1px solid #e2e8f0 !important;

    font-size: 0.835rem !important;

    padding: 0.45rem 0.75rem !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.form-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

/* ── Animations ────────────────────────────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.35s ease both;
}

.fade-in:nth-child(1) {
    animation-delay: 0.04s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.08s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.12s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.16s;
}

/* ── Uptime Timeline (Pingdom-style 30-day bars) ───────────────── */

.uptime-timeline {
    display: flex;

    gap: 1.5px;

    align-items: stretch;

    height: 28px;
}

.upbar-day {
    flex: 1;

    min-width: 5px;

    max-width: 10px;

    border-radius: 2px;

    cursor: pointer;

    transition:
        opacity 0.12s,
        transform 0.12s;

    position: relative;
}

.upbar-day:hover {
    opacity: 0.75;
    transform: scaleY(1.12);
}

/* Tooltip for uptime bars via Bootstrap */

.uptime-timeline-wrap {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.uptime-timeline-labels {
    display: flex;

    justify-content: space-between;

    font-size: 0.6rem;

    color: var(--text-muted);
}

/* ── Domain Detail Modal ────────────────────────────────────────── */

.detail-stat-box {
    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    padding: 0.9rem 1rem;

    text-align: center;
}

.detail-stat-val {
    font-size: 1.4rem;

    font-weight: 800;

    color: var(--text-primary);

    line-height: 1;

    margin-bottom: 0.2rem;
}

.detail-stat-val.excellent {
    color: #059669;
}

.detail-stat-val.good {
    color: #10b981;
}

.detail-stat-val.poor {
    color: #f59e0b;
}

.detail-stat-val.bad {
    color: #ef4444;
}

.detail-stat-label {
    font-size: 0.67rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.07em;

    color: var(--text-muted);
}

.incident-row {
    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding: 0.55rem 0;

    border-bottom: 1px solid #f8fafc;

    font-size: 0.8rem;
}

.incident-row:last-child {
    border-bottom: none;
}

.incident-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #ef4444;

    flex-shrink: 0;
}

.incident-ongoing {
    background: #ef4444;
    animation: ping 1.5s infinite;
}

.chart-response-wrap {
    height: 160px;
    position: relative;
}

/* ── Page-specific: Landing ────────────────────────────────────── */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: white;
}

.features-section .feature-icon {
    margin-bottom: 1rem;
}

.pricing-section .card {
    transition: transform 0.3s;
}

.pricing-section .card:hover {
    transform: translateY(-5px);
}

.btn-default {
    position: relative;

    display: inline-block;

    background: linear-gradient(90.15deg, #4d51ab 1.15%, #55cee3 98.84%);

    background-size: 200% auto;

    border-radius: 10px;

    color: #fff !important;

    font-size: 18px;

    font-weight: 600;

    line-height: 1em;

    text-transform: capitalize;

    border: none;

    padding: 17px 60px 17px 30px;

    transition: all 0.4s ease-in-out;

    overflow: hidden;

    z-index: 0;

    background: #3f82fb;
}

.btn-default::before {
    content: "\f0a9";

    font-family: "Font Awesome 6 Free";

    position: absolute;

    top: 50%;

    right: 0;

    transform: translate(-30px, -50%);

    font-size: 20px;

    color: var(--white-color);

    border-radius: 50%;

    transition: all 0.4s ease-in-out;
}

.btn-default:hover::before {
    transform: translate(-27px, -50%);
}

.btn-default:hover {
    background-position: right center;
}

/* Card */

.card-container {
    width: 450px;

    background: #ffffff;

    padding: 35px;

    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    margin: 6% auto auto;
}

/* Headings */

.card-container h2 {
    font-size: 20px;

    text-align: center;

    color: #1a1a1a;

    margin-bottom: 6px;
}

.card-container p {
    text-align: center;

    font-size: 14px;

    color: #6b7280;

    margin-bottom: 25px;
}

/* Floating Input */

.input-group {
    position: relative;

    margin-bottom: 18px;
}

.input-group input {
    width: 100%;

    padding: 14px 12px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    outline: none;

    font-size: 14px;

    background: none;

    transition: 0.3s;
}

/* Labels */

.input-group label {
    position: absolute;

    left: 3px;

    top: -16px;

    transform: translateY(-50%);

    /*background: #fff;*/

    padding: 0 5px;

    color: red;

    font-size: 11px;

    pointer-events: none;

    transition: 0.3s;
}

/* Focus */

.input-group input:focus {
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.logo img {
    width: 200px;
}

.user-icon {
    margin: auto auto 20px;

    text-align: center;

    width: 100%;

    font-size: 60px;

    color: #3f82fb;
}

@media (max-width: 767px) {
    .logo img {
        width: 170px;
    }

    .card-container {
        width: 100%;
    }
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);

        transition: transform 0.25s ease;
    }

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

    .main-wrapper {
        margin-left: 0;
    }

    .page-content {
        padding: 1rem;
    }
}
