/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-light: #EEF2FF;
    /* Indigo 50 */
    --primary-hover: #4338CA;
    /* Indigo 700 */
    --secondary: #64748B;
    /* Slate 500 */
    --success: #10B981;
    /* Emerald 500 */
    --success-bg: #ECFDF5;
    /* Emerald 50 */
    --warning: #F59E0B;
    /* Amber 500 */
    --warning-bg: #FFFBEB;
    /* Amber 50 */
    --danger: #EF4444;
    /* Red 500 */
    --danger-bg: #FEF2F2;
    /* Red 50 */
    --dark: #0F172A;
    /* Slate 900 */
    --light: #F8FAFC;
    /* Slate 50 */
    --white: #FFFFFF;

    /* Backgrounds */
    --bg-body: #F1F5F9;
    /* Slate 100 */
    --bg-card: #FFFFFF;

    /* Typography */
    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #94A3B8;
    /* Slate 400 */

    /* Borders & Shadows */
    --border: #E2E8F0;
    /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.position-relative {
    position: relative !important;
}

.w-100 {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: right !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- Responsive Display Utilities (Bootstrap-like) --- */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .d-md-block {
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    .d-md-flex {
        display: none !important;
    }

    .d-none.d-md-flex {
        display: none !important;
    }
}

/* --- Components --- */

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 2rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.text-danger:hover {
    color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-dark {
    background-color: var(--dark);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #6EE7B7;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #FCA5A5;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #FCD34D;
}

/* Forms */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--bg-card);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.25rem;
    display: block;
}

.is-invalid {
    border-color: var(--danger) !important;
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table th {
    background: var(--light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--secondary);
}

/* --- Badges --- */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bg-info {
    background: #E0F2FE;
    color: #0369A1;
}

.bg-success {
    background: #DCFCE7;
    color: #15803D;
}

.bg-warning {
    background: #FEF3C7;
    color: #92400E;
}

.bg-danger {
    background: #FEE2E2;
    color: #B91C1C;
}

.bg-secondary {
    background: #F1F5F9;
    color: #475569;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

body {
    animation: fadeIn 0.4s ease-out;
}

/* Attachment Component */
.attachment-box {
    background: #F8FAFC;
    border: 2px dashed #E2E8F0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}


.video-wrapper {
    background: #000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* --- Premium Navbar Styles --- */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, #4338CA 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.user-role-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link-modern {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-link-modern.logout {
    color: var(--danger);
    background: var(--danger-bg);
}

.nav-link-modern.logout:hover {
    background: #FEE2E2;
    transform: translateY(-2px);
}

/* --- Mobile Menu Drawer --- */
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.mobile-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden off-screen to the left */
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 9999;
    padding: 1.5rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    /* Allow scrolling if menu is tall */
}

.mobile-menu-drawer.active {
    left: 0;
    /* Slide in to view */
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light);
    padding: 1rem;
    border-radius: 12px;
}

.drawer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.drawer-user-info {
    display: flex;
    flex-direction: column;
}

.drawer-nav li {
    margin-bottom: 0.5rem;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.2s;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: var(--light);
    color: var(--primary);
}

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   Unified View Incident Style System (Solo View)
   ========================================================================== */
.solo-view-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.back-link-modern {
    text-decoration: none;
    color: #64748B;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-link-modern:hover {
    color: #0F172A;
}

.main-incident-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #F1F5F9;
}

/* Header */
.incident-header {
    padding: 2.5rem 3rem 1.5rem 3rem;
    border-bottom: 1px solid #F1F5F9;
}

.incident-headline {
    font-size: 2rem;
    font-weight: 800;
    color: #1E293B;
    margin: 0;
    letter-spacing: -0.5px;
}

.id-tag {
    font-family: monospace;
    background: #F1F5F9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.date-tag {
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Reporter Pill / Multi-User */
.reporter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
}

.initials,
.initials-tech {
    width: 24px;
    height: 24px;
    background: #64748B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.initials-tech {
    background: #334155;
}

.name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

/* Status Badges - Elite Big */
.status-big-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.bg-blue-soft {
    background: #EFF6FF;
}

.text-blue {
    color: #3B82F6;
}

.bg-green-soft {
    background: #F0FDF4;
}

.text-green {
    color: #22C55E;
}

.bg-orange-soft {
    background: #FFF7ED;
}

.text-orange {
    color: #F97316;
}

.bg-purple-soft {
    background: #FAF5FF;
}

.text-purple {
    color: #A855F7;
}

.bg-red-soft {
    background: #FEE2E2;
}

.text-red {
    color: #EF4444;
}

.bg-zinc-soft {
    background: #F4F4F5;
}

.text-zinc {
    color: #52525B;
}

/* Layout System */
.incident-body-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 500px;
}

.body-content {
    padding: 2.5rem 3rem;
    border-right: 1px solid #F1F5F9;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.desc-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.image-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.img-tile {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    border: 1px solid #E2E8F0;
    transition: transform 0.2s;
}

.img-tile:hover {
    transform: translateY(-3px);
}

.img-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar & Thread */
.body-sidebar {
    background: #FCFCFD;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E293B;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.thread-view {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
}

.no-comments {
    color: #CBD5E1;
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

.thread-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thread-meta {
    font-size: 0.65rem;
    color: #94A3B8;
    display: flex;
    justify-content: space-between;
}

.thread-msg {
    background: white;
    border: 1px solid #E2E8F0;
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
}

.thread-msg.is-admin {
    background: #EEF2FF;
    border-color: #E0E7FF;
    color: #1E293B;
}

.thread-input {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #F1F5F9;
    display: flex;
    gap: 8px;
}

.thread-input input {
    flex: 1;
    background: #F8FAFC;
    border: none;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
}

.thread-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4F46E5;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.thread-input button:hover {
    background: #4338CA;
    transform: translateY(-2px);
}

@media(max-width: 900px) {
    .incident-body-grid {
        grid-template-columns: 1fr;
    }

    .body-content {
        border-right: none;
        border-bottom: 1px solid #F1F5F9;
    }
}

/* --- Responsive Table Fixes --- */
@media (max-width: 768px) {
    .table-flex-wrapper {
        border-radius: 8px;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-flex-body {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        min-width: 800px;
        /* Force body to match header width */
    }

    .table-flex-header {
        min-width: 800px;
        /* Match body width */
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .table-flex-row {
        min-width: 100%;
        /* Fill the body width */
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .analytics-flex-container {
        flex-direction: row !important;
        overflow-x: auto !important;
        height: auto !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .minimal-stat-card {
        border-right: 1px solid var(--border);
        border-bottom: none !important;
        min-width: 180px;
        /* Shrunken slightly for mobile */
        flex: 0 0 auto !important;
        /* Prevent shrinking/growing */
    }

    .minimal-stat-card:last-child {
        border-right: none;
        border-bottom: none;
    }

    /* Elite Filter System - 2 Row Premium Pro Layout */
    .filter-flex-container {
        height: auto !important;
        padding: 0.25rem !important;
        background: transparent !important;
        border: none !important;
        margin-bottom: 2rem !important;
    }

    .filter-flex-container form {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        height: auto !important;
        width: 100% !important;
    }

    .filter-item {
        height: 52px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        background: white !important;
        padding: 0 1rem !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        align-items: center !important;
        flex: none !important;
    }

    /* Row 1: Status Dropdown */
    .filter-item:has(.custom-dropdown),
    .filter-item:nth-child(2) {
        order: 1 !important;
        width: 100% !important;
    }

    .custom-dropdown,
    .dropdown-trigger {
        width: 100% !important;
    }

    /* Row 2: Search */
    .search-box-item {
        order: 2 !important;
        flex: 1 !important;
        width: auto !important;
    }

    /* Row 2: Action Button */
    .action-item,
    .filter-item:nth-child(3) {
        order: 3 !important;
        width: 70px !important;
        background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
        border: none !important;
        padding: 0 !important;
        justify-content: center !important;
        box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3) !important;
    }

    .action-item button,
    .filter-item:nth-child(3) button {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-size: 0 !important;
        /* Hide text */
    }

    .action-item button::before,
    .filter-item:nth-child(3) button::before {
        content: "\f002";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.25rem !important;
    }

    /* Table & Body Fixes */
    .table-flex-body {
        max-height: none !important;
        overflow: visible !important;
    }

    .table-flex-wrapper {
        border: 1px solid #E2E8F0 !important;
        background: white !important;
        margin-top: 1rem !important;
    }

    /* Pagination Mobile Stack */
    .pagination-flex-container {
        flex-direction: column !important;
        height: auto !important;
        padding: 1.5rem !important;
        gap: 1.25rem !important;
    }

    /* Fix Drawer Menu Logout */
    .drawer-nav {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .drawer-nav li:last-child {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .drawer-nav a.text-danger {
        background: #FEF2F2;
        color: #DC2626 !important;
        justify-content: center;
    }

    .search-box-item,
    .select-box-item,
    .action-item {
        flex: none !important;
    }

    .container {
        padding: 0 1rem;
    }

    .pro-header {
        font-size: 1.75rem !important;
    }

    /* Professional Buttons shadow fix */
    .btn-pro-primary:active,
    .btn-pro-secondary:active,
    .btn-glass-primary:active {
        transform: scale(0.96) !important;
        opacity: 0.9 !important;
    }

    /* Professional Responsive Popups (Glass Modal) */
    .glass-modal-card {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem;
        border-radius: 16px !important;
    }

    .glass-modal-header {
        padding: 1rem !important;
    }

    .glass-modal-title {
        font-size: 0.9rem !important;
    }

    .glass-modal-body {
        padding: 1.25rem !important;
        max-height: 70vh;
        overflow-y: auto;
    }

    .glass-modal-footer {
        padding: 1rem !important;
        flex-direction: column-reverse;
        /* Stack buttons on mobile */
        gap: 0.5rem !important;
    }

    .btn-glass-primary,
    .btn-glass-secondary {
        width: 100% !important;
        flex: none !important;
        padding: 0.8rem !important;
    }

    /* Custom Dropdown Mobile Fixes */
    .dropdown-menu-custom {
        width: 100% !important;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10001 !important;
        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1) !important;
        display: block !important;
        visibility: hidden !important;
    }

    .dropdown-menu-custom.active {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .dropdown-item {
        padding: 1.25rem !important;
        font-size: 1rem !important;
        border-bottom: 1px solid #f1f5f9;
    }

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

    /* Professional View Incident Header Responsiveness */
    .incident-header {
        padding: 1.5rem !important;
    }

    .incident-header>.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }

    .incident-headline {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin: 0.5rem 0 !important;
        word-break: break-word;
    }

    .status-zone {
        text-align: left !important;
        width: 100% !important;
    }

    .status-big-badge {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
    }

    .reporter-pill {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .solo-view-container {
        padding: 0 10px !important;
    }

    .main-incident-card {
        border-radius: 12px !important;
    }

    /* Professional Dashboard Header Responsiveness */
    .header-section {
        margin-bottom: 2rem !important;
    }

    .header-section>.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }

    .header-section .btn-pro-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2) !important;
    }
}