/* Anamur Yol Durumu Design System & Custom Styles */

/* -------------------------------------------------------------
   1. GLOBAL VARIABLES & RESET
------------------------------------------------------------- */
:root {
    --bg-main: #0b0f19;
    --bg-sidebar: rgba(15, 23, 42, 0.75);
    --bg-card: rgba(30, 41, 59, 0.45);
    --bg-card-hover: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-open: #10b981;
    --color-open-glow: rgba(16, 185, 129, 0.3);
    --color-closed: #ef4444;
    --color-closed-glow: rgba(239, 68, 68, 0.3);
    
    --color-police: #3b82f6;
    --color-police-glow: rgba(59, 130, 246, 0.3);
    --color-radar: #f59e0b;
    --color-radar-glow: rgba(245, 158, 11, 0.3);
    --color-blockage: #d946ef;
    
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 70px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------
   2. TYPOGRAPHY & INTERACTIVE CORE
------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-open);
    text-decoration: underline;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism base utility */
.glassmorphic {
    background: var(--bg-sidebar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

/* -------------------------------------------------------------
   3. APP HEADER
------------------------------------------------------------- */
.app-header {
    height: var(--header-height);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a855f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    animation: pulse-glow 3s infinite alternate;
}

.logo-icon i {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
}

.logo-area h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.logo-area p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Header Stats / Ticker */
.header-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.stat-badge .label {
    color: var(--text-secondary);
}

.stat-badge strong {
    color: var(--text-primary);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Header User section */
.header-user-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.user-profile-widget:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-color-active);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

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

.user-name-info span {
    font-size: 0.85rem;
    font-weight: 500;
}

.logout-btn-header {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.logout-btn-header:hover {
    color: var(--color-closed);
    background: rgba(239, 110, 110, 0.1);
}

/* -------------------------------------------------------------
   4. MAIN CONTAINER & SIDEBAR
------------------------------------------------------------- */
.main-container {
    flex: 1;
    display: flex;
    position: relative;
    height: calc(100vh - var(--header-height));
    width: 100vw;
}

.sidebar {
    width: 380px;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.4);
}

.tab-btn {
    background: transparent;
    color: var(--text-secondary);
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.05);
}

/* Tab Content Areas */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tab-header {
    margin-bottom: 0.5rem;
}

.tab-header h2 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.tab-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
   5. ROAD LIST & ROAD ITEMS
------------------------------------------------------------- */
.road-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.road-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.road-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.road-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.road-status-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.road-status-tag.open {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-open);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.road-status-tag.closed {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-closed);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.road-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.road-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.road-meta .comments-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.road-meta .comments-count i {
    width: 14px;
    height: 14px;
}

/* -------------------------------------------------------------
   6. CANLI RAPORLAR (PIN REPORTS)
------------------------------------------------------------- */
.report-actions-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

.report-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.report-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.report-item.radar::before { background-color: var(--color-radar); }
.report-item.police::before { background-color: var(--color-police); }
.report-item.blockage::before { background-color: var(--color-blockage); }

.report-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    transform: translateY(-2px);
}

.report-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-item-title i {
    width: 16px;
    height: 16px;
}

.report-item.radar i { color: var(--color-radar); }
.report-item.police i { color: var(--color-police); }
.report-item.blockage i { color: var(--color-blockage); }

.report-item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.report-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.4rem;
}

.report-time-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.report-time-badge i {
    width: 12px;
    height: 12px;
}

/* -------------------------------------------------------------
   7. DETAIL VIEW PANEL
------------------------------------------------------------- */
.detail-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f172a;
    z-index: 100;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.detail-panel.active {
    display: flex;
}

.back-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    align-self: flex-start;
    transition: var(--transition-smooth);
}

.back-btn i {
    width: 14px;
    height: 14px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-accent);
}

.detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.detail-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.detail-status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-reporter-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* Comments Section Style */
.detail-comments-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-comments-section h4 {
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.comment-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.comment-user {
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.comment-user i {
    width: 12px;
    height: 12px;
}

.comment-time {
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.no-comments {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 1.5rem;
}

/* Add Comment Form */
.add-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.add-comment-form textarea {
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    padding: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    resize: none;
    transition: var(--transition-smooth);
}

.add-comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.login-to-comment {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-radar);
}

/* -------------------------------------------------------------
   8. USER PROFILE TAB
------------------------------------------------------------- */
.profile-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar-big {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a855f7 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.profile-name-details h3 {
    font-size: 1.1rem;
}

.profile-name-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.profile-stat-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
}

.profile-stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.profile-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
   9. MAP CONTAINER & LAYER SWITCHER
------------------------------------------------------------- */
.map-section {
    flex: 1;
    height: 100%;
    position: relative;
    background-color: #111;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-controls-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
    padding: 0.35rem;
    border-radius: 12px;
    display: flex;
    gap: 0.35rem;
}

.layer-btn {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.layer-btn i {
    width: 14px;
    height: 14px;
}

.layer-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.layer-btn.active {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* Leaflet Custom Popups and Map Styling */
.leaflet-container {
    background: #0f172a !important;
}

.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-premium) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background-color: var(--bg-sidebar) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: blur(10px);
}

.leaflet-bar a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: var(--color-accent) !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: var(--bg-sidebar) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-premium) !important;
    border-radius: 12px !important;
}

.leaflet-popup-content {
    font-family: var(--font-body) !important;
    margin: 12px 16px !important;
}

.map-popup-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-popup-header {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.map-popup-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.map-popup-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.map-popup-btn:hover {
    background: var(--color-accent-hover);
}

/* Custom Marker Pins */
.custom-pin-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-accent);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -18px 0 0 -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.marker-pin-wrapper i {
    transform: rotate(45deg);
    color: white;
    width: 16px;
    height: 16px;
}

/* Pin styles by type */
.marker-pin-wrapper.radar {
    background: var(--color-radar);
    box-shadow: 0 0 12px var(--color-radar-glow);
    animation: pin-pulse-radar 1.5s infinite;
}
.marker-pin-wrapper.police {
    background: var(--color-police);
    box-shadow: 0 0 12px var(--color-police-glow);
    animation: pin-pulse-police 1.5s infinite;
}
.marker-pin-wrapper.blockage {
    background: var(--color-blockage);
    animation: pin-pulse-blockage 1.5s infinite;
}

@keyframes pin-pulse-radar {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

@keyframes pin-pulse-police {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6); }
    100% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

@keyframes pin-pulse-blockage {
    0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.6); }
    100% { box-shadow: 0 0 0 10px rgba(217, 70, 239, 0); }
}

/* -------------------------------------------------------------
   10. MODALS STYLING
------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    padding: 1.75rem;
}

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

.modal-header h3 {
    font-size: 1.2rem;
}

.close-btn {
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.close-btn i {
    width: 18px;
    height: 18px;
}

/* Form Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.bg-dark-input {
    background: rgba(11, 15, 25, 0.8) !important;
    color: var(--text-secondary) !important;
}

.form-error {
    color: var(--color-closed);
    font-size: 0.8rem;
    min-height: 1rem;
}

/* Custom Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.radio-cards-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.radio-card-content i {
    width: 24px;
    height: 24px;
}

.radio-card-content span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Selected states */
.radio-card input:checked + .radio-card-content {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.radio-card.open input:checked + .radio-card-content {
    border-color: var(--color-open);
    background: rgba(16, 185, 129, 0.1);
}

.radio-card.closed input:checked + .radio-card-content {
    border-color: var(--color-closed);
    background: rgba(239, 68, 68, 0.1);
}

/* Dot Helpers */
.dot-static {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.bg-green { background-color: var(--color-open); }
.bg-red { background-color: var(--color-closed); }

/* Demo Quick Login Box styling */
.demo-box {
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed var(--border-color-active);
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.demo-box h4 {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: var(--color-accent);
}

.demo-box p {
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.demo-box code {
    background: rgba(0,0,0,0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: #f87171;
}

/* -------------------------------------------------------------
   11. BUTTONS & UTILITIES
------------------------------------------------------------- */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

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

.btn-success {
    background: var(--color-open);
    color: white;
}
.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--color-radar);
    color: #0b0f19;
    font-weight: 600;
}
.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-sm i {
    width: 14px;
    height: 14px;
}

.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }

/* Pulse Animation Helpers */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.4); }
    100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.7); }
}

.pulse-green {
    background-color: var(--color-open);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green-anim 2s infinite;
}

.pulse-red {
    background-color: var(--color-closed);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red-anim 2s infinite;
}

.pulse-yellow {
    background-color: var(--color-radar);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse-yellow-anim 2s infinite;
}

@keyframes pulse-green-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-red-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-yellow-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Zoom effect for modals */
.animate-zoom {
    animation: animatezoom 0.3s;
}
@keyframes animatezoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* -------------------------------------------------------------
   12. RESPONSIVE DESIGN (MOBILE MEDIA QUERIES)
------------------------------------------------------------- */
@media (max-width: 900px) {
    body {
        overflow-y: auto;
        height: auto;
    }
    
    .app-header {
        padding: 0 1rem;
        flex-wrap: wrap;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 1rem;
    }
    
    .header-stats {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    
    .main-container {
        flex-direction: column-reverse;
        height: auto;
        min-height: calc(100vh - 130px);
    }
    
    .sidebar {
        width: 100%;
        height: 550px;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
    
    .map-section {
        height: 400px;
        flex: none;
        width: 100%;
    }
    
    .map-controls-overlay {
        bottom: 1rem;
        right: 1rem;
    }
}
