body {
    background: #0d1117;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(56, 75, 120, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(10, 10, 25, 0.8) 0%, transparent 70%);
    /*min-height: 100vh;*/
    /*font-family: sans-serif;*/
    /*padding: 1.5rem;*/
}

/* ================================
       Filter Buttons
    ================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.modern-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    box-shadow: inset 0 0 0 1px var(--badge-ring);
}
.modern-badge-gray {
    --badge-bg: rgba(156, 163, 175, 0.1);
    --badge-text: #9ca3af;
    --badge-ring: rgba(156, 163, 175, 0.2);
    --badge-glow: rgba(156, 163, 175, 0.6);
}
.modern-badge-red {
    --badge-bg: rgba(248, 113, 113, 0.1);
    --badge-text: #f87171;
    --badge-ring: rgba(248, 113, 113, 0.2);
    --badge-glow: rgba(248, 113, 113, 0.6);
}
.modern-badge-yellow {
    --badge-bg: rgba(250, 204, 21, 0.1);
    --badge-text: #eab308;
    --badge-ring: rgba(250, 204, 21, 0.2);
    --badge-glow: rgba(250, 204, 21, 0.6);
}
.modern-badge-green {
    --badge-bg: rgba(74, 222, 128, 0.1);
    --badge-text: #4ade80;
    --badge-ring: rgba(34, 197, 94, 0.2);
    --badge-glow: rgba(74, 222, 128, 0.6);
}
.modern-badge-blue {
    --badge-bg: rgba(96, 165, 250, 0.1);
    --badge-text: #60a5fa;
    --badge-ring: rgba(96, 165, 250, 0.3);
    --badge-glow: rgba(96, 165, 250, 0.6);
}
.modern-badge-indigo {
    --badge-bg: rgba(129, 140, 248, 0.1);
    --badge-text: #818cf8;
    --badge-ring: rgba(129, 140, 248, 0.3);
    --badge-glow: rgba(129, 140, 248, 0.6);
}
.modern-badge-purple {
    --badge-bg: rgba(192, 132, 252, 0.1);
    --badge-text: #c084fc;
    --badge-ring: rgba(192, 132, 252, 0.3);
    --badge-glow: rgba(192, 132, 252, 0.6);
}
.modern-badge-pink {
    --badge-bg: rgba(244, 114, 182, 0.1);
    --badge-text: #f472b6;
    --badge-ring: rgba(244, 114, 182, 0.2);
    --badge-glow: rgba(244, 114, 182, 0.6);
}

.filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--badge-text);
    color: var(--badge-text);
    cursor: pointer;
    transition: all 0.25s ease;
    isolation: isolate;
    overflow: hidden;
}
/*.filter-btn:hover {
    background: var(--badge-bg);
    box-shadow:
        0 0 8px 2px var(--badge-glow),
        0 0 20px 4px var(--badge-glow);
}
.filter-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, var(--badge-glow) 0%, transparent 70%);
    filter: blur(2px);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.filter-btn:hover::before {
    opacity: 1;
}*/
.filter-btn.active {
    background: var(--badge-bg);
    box-shadow:
        inset 0 0 0 1px var(--badge-ring),
        0 0 8px 2px var(--badge-glow),
        0 0 20px 4px var(--badge-glow);
}
.filter-btn.active::before {
    opacity: 0.6;
}

.modern-cards-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 8px;
}
.modern-card {
    position: relative;
    width: 100%;
    border-radius: 6px;
    background: rgba(156, 163, 175, 0.07);
    transition: all 0.2s ease;
}
.modern-card:hover {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    background: rgba(156, 163, 175, 0.13);
}
.modern-card__face {
    position: relative;
    width: 100%;
    border-radius: 6px;
    color: #e5e7eb;
    cursor: pointer;
    padding: 8px 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    transition: border-radius 0.2s;
}
.modern-card:hover .modern-card__face {
    border-radius: 6px 6px 0 0;
}
.modern-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.modern-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modern-card__id {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.modern-card__body {
    width: 100%;
    border-radius: 28px;
    margin-top: -28px;
    padding-top: 28px;
    z-index: 1;
    overflow: hidden;
    max-height: 28px;
    transition: max-height 0.4s ease-in-out;
    position: relative;
    box-sizing: border-box;
}
.modern-card:hover .modern-card__body {
    max-height: 200px;
}
.modern-card__body-upper {
    display: flex;
    flex-direction: row;
    padding: 3px 8px;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease-in-out;
}
.modern-card__field {
    display: flex;
    align-items: center;
    gap: 5px;
}
.modern-card__field svg {
    width: 13px;
    height: 13px;
    stroke: #60a5fa;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.modern-card__field-text {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.4;
}
.modern-card__field-text strong {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
}
.modern-card__assign-btn {
    background: transparent;
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    color: #eab308;
    cursor: pointer;
    transition:
        background 0.2s,
        box-shadow 0.2s;
}
.modern-card__assign-btn:hover {
    background: rgba(250, 204, 21, 0.08);
    box-shadow: 0 0 8px 2px rgba(250, 204, 21, 0.3);
}
.modern-card__assign-btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}
.modern-card__status {
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.modern-card__status--active {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.2);
}
.modern-card__status--inprogress {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}
.modern-card__status--enroute {
    background: rgba(250, 204, 21, 0.12);
    color: #eab308;
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.2);
}
.modern-card__status--closed {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.2);
}
.modern-card__status--nonemergency {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    box-shadow: inset 0 0 0 1px rgba(156, 163, 175, 0.2);
}
.modern-card__status--technical {
    background: rgba(192, 132, 252, 0.12);
    color: #c084fc;
    box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.2);
}

.modern-badge-gray {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}
.modern-badge-red {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}
.modern-badge-blue {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}
.modern-badge-yellow {
    background: rgba(250, 204, 21, 0.15);
    color: #eab308;
}
.modern-badge-green {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}
.modern-badge-purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
}
.incident__object-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.incident__object-row svg {
    width: 12px;
    height: 12px;
    stroke: #6366f1;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.incident__object-label {
    font-size: 12px;
    color: #94a3b8;
}
.incident__region-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}
.incident__region-row svg {
    width: 11px;
    height: 11px;
    stroke: #64748b;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.incident__region-label {
    font-size: 11px;
    color: #64748b;
}
.incident__time {
    font-size: 22px;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1;
}
.incident__counter {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

/* helper */
.d-flex {
    display: flex;
}
.gap-2 {
    gap: 8px;
}

.map-card {
  width: 100%;
  height: 100%;
  background: #07182E;
  position: relative;
  display: flex;
  place-content: center;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  z-index: 0;
}

.map-card iframe{
    height: calc(100vh - 6rem - 44px);
    width: 100%;
    z-index: 1;
    border-radius: 10px;
}

.map-card h2 {
  z-index: 1;
  color: white;
  font-size: 2em;
}
