/* ============================================
   SETY INTEL - COMPLETE STYLES (CLEANED)
   Fonts, Variables, Global, Dashboard, Components
   ============================================ */

/* ========== FONT FACES ========== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('../font/Outfit-Thin.ttf') format('truetype');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('../font/Outfit-Thin.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../font/Outfit-ExtraLight.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../font/Outfit-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Outfit-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/Outfit-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/Outfit-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Outfit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../font/Outfit-ExtraBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../font/Outfit-Black.ttf') format('truetype');
}

/* ========== GLOBAL VARIABLES ========== */

:root {
	--primary-color: rgb(83 65 196);
	--secondary-color: #F9F9F9;
	--text-color: rgb(51 51 51);
	--accent-color: rgb(255 235 250);
	--bg-color: #FFFFFF;
	--white-color: #FFFFFF;
	--black-color: #000000;
	--divider-color: #2F2F2F14;
	--dark-divider-color: #FFFFFF14;
	--error-color: rgb(230, 87, 87);
	--default-font: "Outfit", sans-serif;
}

/* ========== THEME VARIABLES (Dashboard) ========== */

:root[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: rgba(20, 20, 20, 0.95);
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent-red: #F21B3F;
    --accent-red-dim: rgba(242, 27, 63, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-focus-bg: rgba(255, 255, 255, 0.08);
    --map-bg: #0b0e11;
}

:root[data-theme="light"] {
    --bg-primary: #F5F5F5;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F9F9F9;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --border-hover: #CCCCCC;
    --accent-red: #F21B3F;
    --accent-red-dim: rgba(242, 27, 63, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --input-bg: #F9F9F9;
    --input-focus-bg: #FFFFFF;
    --map-bg: #e5e5e5;
}

/* ========== GENERAL STYLES ========== */

html, body {
	width: 100%;
	overflow-x: clip;
}

body {
	font-family: var(--default-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1em;
	color: var(--text-color);
	background: var(--bg-color);
}

::-webkit-scrollbar {
	width: 7px;
	background-color: var(--text-color);
}

::-webkit-scrollbar-thumb {
	background: var(--accent-color);
}

::selection {
	color: var(--primary-color);
	background-color: var(--accent-color);
	filter: invert(1);
}

p {
	line-height: 1.6em;
	margin-bottom: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 600;
	line-height: 1.2em;
	color: var(--primary-color);
}

figure {
	margin: 0;
}

img {
	max-width: 100%;
}

a {
	text-decoration: none;
}

a:hover, a:focus {
	text-decoration: none;
	outline: 0;
}

.container {
	max-width: 1700px;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.row > * {
	padding-right: 15px;
	padding-left: 15px;
}

.row.no-gutters {
    margin-right: 0px;
    margin-left: 0px;
}

.row.no-gutters > * {
    padding-right: 0px;
    padding-left: 0px;
}

/* ========== BUTTONS ========== */

.btn-default {
	position: relative;
    display: inline-block;
    background: var(--accent-color);
	border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
	line-height: 1.25em;
    text-transform: capitalize;
    color: var(--primary-color);
    padding: 15px 45px 15px 25px;
    overflow: hidden;
    border: none;
	transition: all 0.4s ease-in-out;
    z-index: 0;
}

.btn-default:hover {
	color: var(--white-color);
}

.btn-default::before {
	content: '';
	position: absolute;
	top: 50%;
    right: 25px;
	width: 10px;
	height: 10px;
	background: url('../images/arrow-primary.svg') no-repeat;
    background-position: center center;
    background-size: cover;
	transform: translateY(-50%);
	transition: all 0.4s ease-in-out;
	z-index: 1;
}

.btn-default:hover::before {
	filter: brightness(0) invert(1);
	transform: translateY(-50%) rotate(45deg);
}

.btn-default::after {
	content: '';
    display: block;
    position: absolute;
	top: 0;
    left: auto;
	right: 0;
    bottom: 0;
	width: 0;
	height: 100%;
    background: var(--primary-color);
	border-radius: 0;
    transition: 0.4s ease-in-out;
	z-index: -1;
}

.btn-default:hover::after {
	width: 100%;
	left: 0;
	right: auto;
}

.btn-default.btn-highlighted {
	background: var(--white-color);
	color: var(--primary-color);
}

.btn-default.btn-highlighted:hover:before {
	filter: none;
}

.btn-default.btn-highlighted::after {
	background-color: var(--accent-color);
}

.readmore-btn {
	position: relative;
	display: inline-block;
	font-weight: 700;
	line-height: normal;
	text-transform: capitalize;
	color: var(--primary-color);
	padding-right: 20px;
	transition: all 0.4s ease-in-out;
}

.readmore-btn::before {
	content: '';
    position: absolute;
    top: 6px;
    right: 0;
	background-image: url('../images/arrow-primary.svg');
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	width: 10px;
	height: 10px;
    transition: all 0.4s ease-in-out;
}

.readmore-btn:hover::before {
	transform: rotate(45deg);
}

/* ========== PRELOADER ========== */

.preloader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
}

.loading-container,
.loading {
	height: 100px;
	position: relative;
	width: 100px;
	border-radius: 100%;
}

.loading-container {
	margin: 40px auto;
}

.loading {
	border: 1px solid transparent;
	border-color: transparent var(--white-color) transparent var(--white-color);
	animation: rotate-loading 1.5s linear 0s infinite normal;
	transform-origin: 50% 50%;
}

#loading-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 66px;
	transform: translate(-50%, -50%);
}

@keyframes rotate-loading {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* ========== TOASTS ========== */

.toastBody {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  color: #181C32;
  font-size: 0.875rem !important;
  background-color: var(--accent-color);
}

.toastProgress {
  background: #333F48 !important;
}

/* ========== HEADER (Optimized for Map View) ========== */

header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar {
    padding: 12px 30px !important;
    height: 70px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.main-menu ul li a {
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 15px !important;
}

.main-menu ul li a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(242, 27, 63, 0.4);
}

.header-contact-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 30px;
    margin-left: 20px;
}

.btn-default.btn-sm-custom {
    padding: 8px 20px !important;
    font-size: 13px;
    border-radius: 8px;
}

/* Header Submenu */
.main-menu ul ul {
	visibility: hidden;
	opacity: 0;
	transform: scale(1,0.8);
	transform-origin: top;
	padding: 0;
	margin: 0;
	list-style: none;
	width: 235px;
	border-radius: 6px;
	position: absolute;
	left: 0;
	top: 100%;
	background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
	transition: all 0.3s ease-in-out;
	text-align: left;
}

.main-menu ul ul ul {
	left: 100%;
	top: 0;
}

.main-menu ul li:hover > ul {
	visibility: visible;
	opacity: 1;
	transform: scale(1,1);
    padding: 5px 0;
}

.main-menu ul ul li a {
	color: var(--primary-color);
	padding: 8px 20px !important;
	transition: all 0.3s ease-in-out;
}

.main-menu ul ul li a:hover,
.main-menu ul ul li a:focus {
	color: var(--white-color);
	background-color: transparent;
	padding: 8px 20px 8px 23px !important;
}

/* ========== DASHBOARD LAYOUT ========== */

.sety-dashboard {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.dashboard-viewport {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    margin-bottom: 32px;
}

/* ========== SIDEBAR (LEFT) ========== */

.intel-panel {
    width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-switcher {
    background: var(--input-bg);
    padding: 4px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
}

.tab-switcher button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-switcher button i {
    font-size: 14px;
}

.tab-switcher button.active {
    background: var(--bg-card);
    color: var(--accent-red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-body::-webkit-scrollbar {
    width: 8px;
}

.panel-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.mobile-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background: var(--accent-red);
    color: #fff;
}

/* ========== SIDEBAR CONTENT ========== */

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feed-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feed-status {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--input-bg);
    border-bottom: 1px solid var(--border-color);
}

.pulse-container {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2ecc71;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse-grow 2s infinite;
}

@keyframes pulse-grow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Incident List */
.incident-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.incident-list::-webkit-scrollbar {
    width: 6px;
}

.incident-list::-webkit-scrollbar-track {
    background: transparent;
}

.incident-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.incident-card {
    position: relative;
    background: var(--bg-card);
    margin: 12px 20px;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.incident-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.incident-card.selected {
    border-color: var(--accent-red);
    background: var(--accent-red-dim);
}

.severity-bar {
    width: 6px;
    flex-shrink: 0;
}

.severity-bar.critical { background: #F21B3F; }
.severity-bar.high { background: #ff9f43; }
.severity-bar.medium { background: #f1c40f; }
.severity-bar.low { background: #3498db; }

.card-content {
    padding: 15px;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.badge-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-critical {
    background: rgba(242, 27, 63, 0.15);
    color: #F21B3F;
}

.badge-high {
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.badge-medium {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.badge-low {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.badge-verified {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.timestamp {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.location-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.location-name i {
    margin-top: 2px;
    font-size: 12px;
    color: var(--accent-red);
}

.excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.view-btn:hover {
    gap: 8px;
}

/* ========== FORMS ========== */

.predict-container,
.report-container {
    padding: 25px;
    overflow-y: auto;
    height: 100%;
}

.predict-header,
.report-header {
    margin-bottom: 25px;
}

.predict-header h3,
.report-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.predict-header p,
.report-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.input-with-icon .custom-input {
    padding-left: 45px;
}

.custom-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.custom-input:focus {
    border-color: var(--accent-red);
    background: var(--input-focus-bg);
}

.custom-input::placeholder {
    color: var(--text-muted);
}

.custom-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

textarea.custom-input {
    resize: vertical;
    min-height: 100px;
}

.input-help {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.optional-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 6px;
}

/* ========== GEOCODING DROPDOWN ========== */

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.location-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.location-dropdown-item:hover {
    background: var(--bg-card-hover);
}

.location-dropdown-item i {
    color: var(--accent-red);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.location-dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.location-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.location-sub {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.location-selected-indicator {
    color: #2ecc71;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.geocoding-indicator {
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse-fade 1.5s infinite;
}

@keyframes pulse-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== BUTTONS ========== */

.analyze-btn,
.submit-alert-btn {
    width: 100%;
    background: var(--accent-red);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(242, 27, 63, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.analyze-btn:hover,
.submit-alert-btn:hover {
    background: #d91838;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(242, 27, 63, 0.3);
}

.analyze-btn:disabled,
.submit-alert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--border-color);
    transform: none;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.privacy-notice {
    margin-top: 15px;
    padding: 12px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.privacy-notice i {
    color: #2ecc71;
    margin-top: 2px;
}

/* ========== APP NUDGE ========== */

.app-nudge {
    margin: 20px;
}

.app-nudge-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.app-nudge-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-nudge-icon i {
    font-size: 24px;
    color: #fff;
}

.app-nudge-text {
    flex: 1;
}

.app-nudge-text h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.app-nudge-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.app-nudge-btn {
    width: 100%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-nudge-btn:hover {
    background: #d91838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 27, 63, 0.3);
}

/* ========== COMING SOON ========== */

.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-red-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    animation: pulse-scale 2s infinite;
}

.coming-soon-icon i {
    font-size: 48px;
    color: var(--accent-red);
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.coming-soon-container h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.coming-soon-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 30px;
}

.coming-soon-footer {
    margin-top: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #2ecc71;
}

/* ========== EMPTY/LOADING STATES ========== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Content Loaders */
.incident-card-loader {
    position: relative;
    background: var(--bg-card);
    margin: 12px 20px;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 140px;
}

.severity-bar-loader {
    width: 6px;
    flex-shrink: 0;
    background: var(--border-color);
}

.card-content-loader {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-loader,
.timestamp-loader,
.location-loader,
.excerpt-loader {
    border-radius: 4px;
    background: var(--border-color);
}

.badge-loader {
    width: 80px;
    height: 22px;
    border-radius: 6px;
}

.timestamp-loader {
    width: 60px;
    height: 16px;
}

.location-loader {
    width: 70%;
    height: 20px;
}

.excerpt-loader {
    width: 100%;
    height: 14px;
}

.excerpt-loader.short {
    width: 60%;
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--border-color) 0%,
        var(--bg-card-hover) 50%,
        var(--border-color) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========== MAP CANVAS ========== */

.map-canvas {
    flex: 1;
    position: relative;
    z-index: 1;
}

.map-engine-wrapper {
    width: 100%;
    height: 100%;
    background: var(--map-bg);
    transition: background-color 0.3s ease;
}

/* Map Markers */
.marker-container {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-container.selected {
    z-index: 1000 !important;
}

.marker-core {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
}

/* Map Popups */
.pro-popup .leaflet-popup-content-wrapper {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    font-family: var(--default-font);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    min-width: 280px;
}

.pro-popup .leaflet-popup-tip {
    background: var(--bg-secondary);
    font-family: var(--default-font);
}

.popup-content {
    color: var(--text-primary);
    font-family: var(--default-font);
}

.popup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--default-font);
    flex-wrap: wrap;
}

.popup-content h4 {
    font-size: 16px;
    /* font-weight: 700; */
    margin: 8px 0;
    color: var(--text-primary);
    font-family: var(--default-font);
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-family: var(--default-font);
    gap: 4px;
}

.popup-details {
    font-size: 13px;
    font-family: var(--default-font);
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    gap: 8px;
    font-family: var(--default-font);
}

.popup-btn {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    font-family: var(--default-font);
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.popup-btn.primary {
    background: var(--accent-red);
    color: #fff;
    font-family: var(--default-font);
}

.popup-btn.primary:hover {
    font-family: var(--default-font);
    background: #d91838;
}

.popup-btn.secondary {
    background: var(--input-bg);
    font-family: var(--default-font);
    color: var(--text-primary);
}

.popup-btn.secondary:hover {
    background: var(--input-focus-bg);
    font-family: var(--default-font);
}

.status-pill {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-pill.critical {
    background: rgba(242, 27, 63, 0.15);
    color: #F21B3F;
}

.status-pill.high {
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.status-pill.medium {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.status-pill.verified {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

/* Map Controls */
.map-overlay-tools {
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
}

.tool-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.tool-btn:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(242, 27, 63, 0.3);
}

/* Map Legend */
.map-legend {
    position: absolute;
    left: 20px;
    bottom: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    z-index: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.map-legend h5 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.legend-dot.critical { background: #F21B3F; }
.legend-dot.high { background: #ff9f43; }
.legend-dot.medium { background: #f1c40f; }
.legend-dot.low { background: #3498db; }

/* Map Stats */
.map-stats {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-icon.critical {
    background: rgba(242, 27, 63, 0.15);
    color: #F21B3F;
}

.stat-icon.total {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

/* ========== FOOTER (Status Bar) ========== */

.footer-map-mode.status-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 32px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    z-index: 10000;
    border-top: 1px solid #222;
}

.static-live-indicator {
    background: #111;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #333;
    white-space: nowrap;
    color: #fff;
    flex-shrink: 0;
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
}

.ticker-move {
    display: flex;
    width: max-content;
    animation: tickerLoop 40s linear infinite;
}

.ticker-item {
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.text-danger-pulse {
    color: #ff3e3e;
    font-size: 8px;
    filter: drop-shadow(0 0 4px #ff3e3e);
    animation: pulse 1.5s infinite;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========== HEADER THEME/MOBILE TOGGLE ========== */

.theme-toggle-btn,
.mobile-header-toggle {
    width: 38px;
    height: 38px;
    background: var(--accent-red-dim);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-toggle-btn {
    color: var(--accent-red);
}

.mobile-header-toggle {
    color: var(--text-primary);
    display: none;
}

.theme-toggle-btn:hover,
.mobile-header-toggle:hover {
    background: var(--accent-red);
    color: #fff;
    transform: scale(1.05);
}

.badge-indicator-header {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #2ecc71;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
@media (max-width: 1024px) {
    .intel-panel {
        width: 360px;
    }

    .map-legend,
    .map-stats {
        transform: scale(0.9);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-viewport {
        flex-direction: column;
        margin-top: 60px;
        margin-bottom: 0;
    }

    .mobile-header-toggle {
        display: flex;
    }
    
    .theme-toggle-btn {
        display: none;
    }

    .intel-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        border-right: none;
        box-shadow: none;
    }

    .intel-panel.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .mobile-close-btn {
        display: flex;
    }

    .map-canvas {
        width: 100%;
        height: 100vh;
    }

    .tab-switcher button span {
        display: none;
    }

    .tab-switcher button {
        padding: 12px;
    }

    .tab-switcher button i {
        font-size: 16px;
    }

    .map-overlay-tools {
        left: 10px;
        top: 10px;
    }

    .tool-btn {
        width: 40px;
        height: 40px;
    }

    .map-legend {
        left: 10px;
        bottom: 100px;
        padding: 12px;
        transform: scale(0.85);
    }

  
     .map-stats {
        right: 10px;
        bottom: 50px; /* Moved UP from footer (32px) + gap */
        padding: 10px 12px;
        gap: 12px;
    }

    .app-nudge {
        margin: 15px;
        padding: 16px;
    }

    .location-dropdown {
        max-height: 200px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .incident-card {
        margin: 10px 15px;
    }

    .card-content {
        padding: 12px;
    }

    .predict-container,
    .report-container {
        padding: 20px 15px;
    }

    .map-legend,
    .map-stats {
        transform: scale(0.75);
        bottom: 50px;
    }
}

/* ========== DATETIME INPUT THEME ========== */

input[type="datetime-local"] {
    cursor: pointer;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: var(--theme-icon-filter, invert(0));
}

:root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}



/* ========== HEADER FIXES - Mobile Responsive + Proper Alignment ========== */

/* Header Container */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar {
    padding: 12px 0 !important;
    height: 70px;
}

.container-fluid {
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand img {
    height: 35px;
    width: auto;
}

/* Desktop Navigation (Center) */
.main-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu-wrapper {
    display: flex;
}

.navbar-nav {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    margin: 0;
}

.main-menu ul li a {
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 15px !important;
    transition: all 0.2s ease;
}

.main-menu ul li a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(242, 27, 63, 0.4);
}

/* Right Side Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.theme-toggle-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.05);
}

.theme-toggle-btn i {
    font-size: 16px;
}

/* Download App Button */
.btn-sm-custom {
    padding: 10px 20px !important;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
}

.btn-text-mobile {
    display: none;
}

/* Mobile Sidebar Toggle */
.mobile-header-toggle {
    width: 40px;
    height: 40px;
    background: var(--accent-red);
    border: none;
    border-radius: 10px;
    display: none; /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    position: relative;
}

.mobile-header-toggle:hover {
    background: #d91838;
    transform: scale(1.05);
}

.mobile-header-toggle i {
    font-size: 18px;
}

.badge-indicator-header {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #2ecc71;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(10, 10, 10, 0.4);
}

/* Show/Hide Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* ========== GEOCODING DROPDOWN Z-INDEX FIX ========== */

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary); /* Solid background, not transparent */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000; /* CRITICAL: Higher than everything else */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Make sure form group doesn't clip dropdown */
.form-group {
    position: relative;
    margin-bottom: 20px;
    z-index: 1; /* Base z-index */
}

/* When dropdown is active, increase form group z-index */
.form-group:has(.location-dropdown) {
    z-index: 10001; /* Above everything when dropdown is open */
}

/* Ensure sidebar doesn't clip dropdown */
.sidebar-inner {
    position: relative;
    z-index: 1;
}

.report-container {
    position: relative;
    z-index: 1;
}

/* ========== MOBILE SIDEBAR FULL SCREEN FIX ========== */

/* Desktop Sidebar */
.intel-panel {
    width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* ========== RESPONSIVE: TABLET ========== */

@media (max-width: 1024px) {
    .intel-panel {
        width: 360px;
    }

    .container-fluid {
        padding: 0 20px;
    }

    .btn-sm-custom {
        padding: 8px 16px !important;
        font-size: 12px;
    }
}

/* ========== RESPONSIVE: MOBILE ========== */

@media (max-width: 768px) {
    /* Header Adjustments */
    .navbar {
        height: 60px;
        padding: 8px 0 !important;
    }

    .container-fluid {
        padding: 0 15px;
    }

    .navbar-brand img {
        height: 28px;
    }

    /* Hide Desktop Navigation */
    .main-menu {
        display: none;
    }

    /* Header Actions on Mobile */
    .header-actions {
        gap: 8px;
    }

    /* Hide Desktop Theme Toggle */
    .desktop-only {
        display: none;
    }

    /* Show Mobile Sidebar Toggle */
    .mobile-only {
        display: flex;
    }

    /* Download Button - Show Icon Only */
    .btn-sm-custom {
        padding: 10px !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-text {
        display: none;
    }

    .btn-text-mobile {
        display: block;
    }

    .btn-text-mobile i {
        font-size: 16px;
    }

    /* Sidebar - Full Screen Overlay */
    .intel-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; /* Full viewport width */
        height: 100vh; /* Full viewport height */
        max-width: 100vw;
        z-index: 2000; /* Above everything */
        transform: translateX(-100%);
        border-right: none;
        box-shadow: none;
        background: var(--bg-primary); /* Solid background on mobile */
        backdrop-filter: none;
    }

    .intel-panel.open {
        transform: translateX(0);
        box-shadow: none; /* No shadow needed for full screen */
    }

    /* Mobile Close Button */
    .mobile-close-btn {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: var(--text-primary);
        font-size: 20px;
        cursor: pointer;
        z-index: 10000;
        transition: all 0.2s ease;
    }

    .mobile-close-btn:hover {
        background: var(--accent-red);
        color: #fff;
    }

    /* Adjust dashboard viewport */
    .dashboard-viewport {
        margin-top: 60px;
    }

    /* Map takes full screen */
    .map-canvas {
        width: 100%;
        height: calc(100vh - 60px);
    }

    /* Tab Switcher - Icons Only */
    .tab-switcher button span {
        display: none;
    }

    .tab-switcher button {
        padding: 12px;
    }

    .tab-switcher button i {
        font-size: 16px;
    }

    /* Geocoding Dropdown - Mobile Adjustments */
    .location-dropdown {
        max-height: 250px;
        z-index: 10000; /* Still highest z-index */
    }

    .location-dropdown-item {
        padding: 10px 12px;
    }

    .location-main {
        font-size: 13px;
    }

    .location-sub {
        font-size: 10px;
    }

    /* Map Controls - Mobile Position */
    .map-overlay-tools {
        left: 10px;
        top: 10px;
    }

    .tool-btn {
        width: 40px;
        height: 40px;
    }

    /* Map Legend & Stats */
    .map-legend {
        left: 10px;
        bottom: 50px;
        padding: 10px;
        transform: scale(0.85);
    }

    .map-stats {
        right: 10px;
        bottom: 50px;
        padding: 10px 12px;
        transform: scale(0.85);
    }
}

/* ========== RESPONSIVE: SMALL MOBILE ========== */

@media (max-width: 480px) {
    .navbar-brand img {
        height: 24px;
    }

    .header-actions {
        gap: 6px;
    }

    .btn-sm-custom,
    .mobile-header-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-header-toggle i {
        font-size: 16px;
    }

    .badge-indicator-header {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    /* Incident Cards */
    .incident-card {
        margin: 10px 15px;
    }

    /* Form Containers */
    .predict-container,
    .report-container {
        padding: 20px 15px;
    }

    /* Map Elements */
    .map-legend,
    .map-stats {
        transform: scale(0.75);
        bottom: 50px;
    }
}

/* ========== LANDSCAPE MODE ON MOBILE ========== */

@media (max-width: 768px) and (orientation: landscape) {
    .intel-panel {
        width: 60vw; /* 60% width in landscape */
        max-width: 400px;
    }

    .intel-panel.open {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .map-legend {
        bottom: 20px;
    }
}

/* ========== FOCUS STATES FOR ACCESSIBILITY ========== */

.theme-toggle-btn:focus,
.mobile-header-toggle:focus,
.btn-sm-custom:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* ========== PREVENT BODY SCROLL WHEN SIDEBAR OPEN ========== */

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.sidebar-open .intel-panel {
        overflow-y: auto;
    }
}



.skeleton-card {
    position: relative;
    background: var(--bg-card);
    margin: 12px 20px;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 140px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Severity Bar Skeleton */
.skeleton-severity {
    width: 6px;
    background: linear-gradient(
        180deg,
        var(--border-color) 0%,
        var(--bg-card-hover) 50%,
        var(--border-color) 100%
    );
    background-size: 100% 200%;
    animation: skeleton-shimmer 1.5s infinite;
    flex-shrink: 0;
}

/* Content Area */
.skeleton-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Header with badge and time */
.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-badge {
    width: 90px;
    height: 24px;
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        var(--bg-card-hover) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-time {
    width: 60px;
    height: 14px;
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        var(--bg-card-hover) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Location */
.skeleton-location {
    width: 75%;
    height: 18px;
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        var(--bg-card-hover) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Description lines */
.skeleton-text {
    width: 100%;
    height: 14px;
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        var(--bg-card-hover) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 65%;
}

/* Button skeleton */
.skeleton-button {
    width: 120px;
    height: 16px;
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        var(--bg-card-hover) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-top: auto;
}

/* Shimmer animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}