*{margin:0;padding:0;box-sizing:border-box}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-height:100vh}#root{min-height:100vh}h1,h2,h3,h4,h5,h6{margin-bottom:.5em}a{text-decoration:none}.leaflet-container{height:100%;width:100%;z-index:1}.layout{display:flex;min-height:100vh;background-color:#f5f5f5}.sidebar{background:linear-gradient(180deg,#1e3a8a,#1e40af);color:#fff;transition:width .3s ease;position:relative;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column}.sidebar.open{width:250px}.sidebar.closed{width:70px}.sidebar-header{padding:1.5rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-header h1{font-size:1.5rem;white-space:nowrap;overflow:hidden}.sidebar.closed .sidebar-header h1{display:none}.menu-toggle{background:transparent;border:none;color:#fff;cursor:pointer;padding:.5rem}.municipality-logo{max-height:40px;max-width:120px;object-fit:contain}.sidebar-nav{padding:1rem 0;flex:1}.nav-item{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;color:#fffc;transition:all .2s;text-decoration:none}.nav-item:hover{background-color:#ffffff1a;color:#fff}.nav-item.active{background-color:#fff3;color:#fff;border-left:4px solid #60a5fa}.nav-item.highlight-purple{background-color:#9333ea26;border-left:3px solid #9333ea}.nav-item.highlight-purple:hover{background-color:#9333ea40}.nav-item.highlight-purple.active{background-color:#9333ea4d;border-left:4px solid #a855f7}.sidebar.closed .nav-item{justify-content:center;padding:1rem}.sidebar.closed .nav-item span{display:none}.sidebar-footer{border-top:1px solid rgba(255,255,255,.1);padding:1rem}.sidebar-user-block{margin:0 1rem .5rem;padding:.75rem;background:#ffffff1a;border-radius:10px;display:flex;flex-direction:column;gap:.5rem}.sidebar-user-info{display:flex;align-items:flex-start;gap:.75rem}.sidebar-user-icon{color:#fffc;flex-shrink:0;margin-top:2px}.sidebar-user-details{display:flex;flex-direction:column;gap:2px;min-width:0}.sidebar-user-name{font-size:.875rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-role{font-size:.7rem;color:#fff9;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.sidebar-readonly-badge{display:inline-block;font-size:.65rem;background:#fef3c7;color:#92400e;border-radius:4px;padding:1px 6px;font-weight:700;margin-top:2px}.sidebar-logout-btn{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;background:#ef444440;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:.875rem;font-weight:600;transition:background .2s}.sidebar-logout-btn:hover{background:#ef444466}.sidebar.closed .sidebar-user-block{margin:0 .5rem .5rem;padding:.5rem;align-items:center}.sidebar.closed .sidebar-user-details{display:none}.sidebar.closed .sidebar-logout-btn{justify-content:center;padding:.5rem}.sidebar.closed .sidebar-logout-btn span,.user-info,.user-details,.user-name,.user-role,.logout-btn{display:none}.logout-nav-btn{background-color:#ef444433;border:none;cursor:pointer;font-size:.875rem;font-weight:500;width:100%}.logout-nav-btn:hover{background-color:#ef44444d}.user-nav-item{background-color:#ffffff1a;cursor:default;flex-direction:column;align-items:flex-start;gap:.5rem;padding:.75rem 1.5rem}.user-nav-item:hover{background-color:#ffffff1a}.nav-user-info{display:flex;flex-direction:column;gap:.125rem;width:100%}.nav-user-name{font-size:.875rem;font-weight:600;color:#fff}.nav-user-role{font-size:.75rem;color:#ffffffb3;text-transform:capitalize}.sidebar.closed .user-nav-item{align-items:center;padding:1rem}.sidebar.closed .nav-user-info{display:none}.priority-alerts{margin:1rem;padding:1rem;background:#ef444426;border-radius:12px;border:2px solid rgba(239,68,68,.3);animation:alertPulse 2s infinite}@keyframes alertPulse{0%,to{border-color:#ef44444d;box-shadow:0 0 #ef444400}50%{border-color:#ef444480;box-shadow:0 0 15px #ef44444d}}.alerts-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;font-size:.875rem;font-weight:700;color:#fef2f2;text-transform:uppercase;letter-spacing:.5px}.alerts-list{display:flex;flex-direction:column;gap:.5rem}.alert-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#fffffff2;border-radius:8px;text-decoration:none;transition:all .2s;cursor:pointer}.alert-item:hover{background:#fff;transform:translate(4px);box-shadow:0 2px 8px #0000001a}.alert-item.urgent{border-left:4px solid #dc2626}.alert-item.high{border-left:4px solid #ea580c}.alert-priority{font-size:1.25rem;line-height:1}.alert-content{flex:1;min-width:0}.alert-title{font-size:.875rem;font-weight:600;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-category{font-size:.75rem;color:#6b7280;text-transform:capitalize}.main-content{flex:1;padding:2rem;overflow-y:auto}.main-content--fullscreen{padding:0!important;overflow:hidden!important;display:flex;flex-direction:column}.mobile-menu-toggle,.mobile-overlay{display:none}@media (max-width: 768px){.layout{position:relative}.sidebar{position:fixed;height:100vh;z-index:1000;left:0;top:0}.sidebar.closed{transform:translate(-100%);width:250px}.sidebar.open{width:250px;transform:translate(0)}.sidebar-header .menu-toggle{display:none}.main-content{margin-left:0;padding:4rem 1rem 1rem;width:100%}.main-header{padding-left:68px!important}.mobile-menu-toggle{display:flex;position:fixed;top:1rem;left:1rem;width:48px;height:48px;background:#1e3a8a;border:none;border-radius:8px;color:#fff;box-shadow:0 2px 8px #0003;z-index:1001;cursor:pointer;align-items:center;justify-content:center}.mobile-overlay{display:block;position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:999}}.sidebar-legal-links{padding:.75rem 1rem;display:flex;gap:6px;align-items:center;justify-content:center;font-size:.7rem;border-top:1px solid rgba(255,255,255,.1);margin-top:auto}.sidebar-legal-links a,.sidebar-legal-links span{color:#ffffff73;text-decoration:none}.sidebar-legal-links a:hover{color:#ffffffbf;text-decoration:underline}.dashboard{max-width:1400px}.dashboard-header{background:linear-gradient(135deg,#1e3a8a,#3b82f6);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 4px 12px #1e3a8a33}.header-content{display:flex;align-items:center;gap:1.5rem}.municipality-logo{width:80px;height:80px;object-fit:contain;background:#fff;border-radius:12px;padding:.5rem;box-shadow:0 2px 8px #0000001a}.header-text{flex:1}.header-text h1{margin:0;color:#fff;font-size:2rem;font-weight:700}.municipality-name{color:#fdf2f2e6;font-size:2.125rem;margin:2rem 0 0;font-weight:500}.dashboard h1{margin-bottom:2rem;color:#1e3a8a}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:3rem}.stat-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;display:flex;gap:1rem;align-items:center;transition:transform .2s}.stat-card:hover{transform:translateY(-4px);box-shadow:0 4px 16px #00000026}.stat-icon{width:60px;height:60px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.stat-icon.total{background:linear-gradient(135deg,#667eea,#764ba2)}.stat-icon.open{background:linear-gradient(135deg,#f093fb,#f5576c)}.stat-icon.progress{background:linear-gradient(135deg,#4facfe,#00f2fe)}.stat-icon.resolved{background:linear-gradient(135deg,#43e97b,#38f9d7)}.stat-content h3{font-size:.875rem;color:#64748b;font-weight:500;margin:0}.stat-value{font-size:2rem;font-weight:700;color:#1e293b;margin:0}.section{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem}.section h2{margin-bottom:1.5rem;color:#1e3a8a}.category-list{display:grid;gap:.75rem}.category-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:8px;border-left:4px solid #3b82f6}.category-info{display:flex;align-items:center;gap:.75rem}.category-icon{font-size:1.5rem;line-height:1}.category-name{font-weight:500;color:#1e293b!important;-webkit-text-fill-color:#1e293b}.category-count{background:#3b82f6;color:#fff;padding:.25rem .75rem;border-radius:12px;font-weight:600}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:2rem;margin-bottom:2rem}@media (max-width: 1024px){.dashboard-grid{grid-template-columns:1fr}}.reports-section{grid-column:1}.categories-section{grid-column:2}@media (max-width: 1024px){.reports-section,.categories-section{grid-column:1}}.recent-reports{display:grid;gap:1rem}.report-item{display:flex;gap:.75rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;transition:all .2s}.report-photo{flex-shrink:0;width:80px;height:80px;border-radius:6px;overflow:hidden;background:#f1f5f9}.report-photo img{width:100%;height:100%;object-fit:cover}.report-content{flex:1;min-width:0}.report-item:hover{border-color:#3b82f6;box-shadow:0 4px 12px #3b82f61a}.report-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:.25rem;gap:.5rem}.report-header h4{margin:0;color:#1e293b;font-size:.95rem;line-height:1.3}.report-content p{font-size:.85rem;color:#64748b;margin:0;line-height:1.4}.status-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.status-badge.open{background:#fef2f2;color:#dc2626}.status-badge.in_progress{background:#fffbeb;color:#d97706}.status-badge.resolved{background:#f0fdf4;color:#16a34a}.status-badge.rejected{background:#f8fafc;color:#64748b}.report-meta{display:flex;gap:.75rem;margin-top:.5rem;font-size:.75rem;font-size:.875rem;color:#64748b}.category-badge{background:#e0f2fe;color:#0369a1;padding:.125rem .5rem;border-radius:6px;text-transform:capitalize}.priority-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.875rem;font-weight:600;text-transform:capitalize}.priority-badge.medium{background:#fef3c7;color:#92400e}.priority-badge.high{background:#fed7aa;color:#9a3412}.priority-badge.urgent{background:#fee2e2;color:#991b1b}@media (max-width: 768px){.dashboard-header{padding:1.5rem}.header-content{flex-direction:column;text-align:center}.municipality-logo{width:60px;height:60px}.header-text h1{font-size:1.5rem}.municipality-name{font-size:1rem}.stats-grid{grid-template-columns:1fr}.modal-content{max-height:95vh}}.reports-page{max-width:1400px}.filter-btn{display:flex;align-items:center;gap:.5rem;background:#fff;color:#3b82f6;border:2px solid #3b82f6;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s;position:relative}.filter-btn:hover,.filter-btn.active{background:#3b82f6;color:#fff}.filter-badge{background:#ef4444;color:#fff;padding:.125rem .5rem;border-radius:12px;font-size:.75rem;font-weight:700}.filters-panel{background:#fff;padding:1.5rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 8px #0000001a;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.filter-group{display:flex;flex-direction:column;gap:.5rem}.filter-group label{font-size:.875rem;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.5px}.filter-group select,.filter-group input{padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;color:#1f2937;background:#fff;transition:border-color .2s}.filter-group select:focus,.filter-group input:focus{outline:none;border-color:#3b82f6}.clear-filters-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#fee2e2;color:#dc2626;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:.875rem;transition:all .2s}.clear-filters-btn:hover{background:#fecaca}.reports-table-container{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #00000014}.reports-table{width:100%;border-collapse:collapse;font-size:.8rem}.reports-table thead{background:#1e3a8a}.reports-table th{padding:.6rem .75rem;text-align:left;font-weight:600;color:#ffffffe6;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.reports-table tbody tr{border-bottom:1px solid #f1f5f9;transition:background-color .15s}.reports-table tbody tr:nth-child(2n){background:#f8fafc}.reports-table tbody tr:hover{background:#eff6ff}.reports-table td{padding:.45rem .75rem;vertical-align:middle;color:#1f2937}.report-title-cell{font-weight:600;color:#111827;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.view-btn{display:inline-flex;align-items:center;justify-content:center;padding:.3rem;background:#3b82f6;color:#fff;border:none;border-radius:5px;cursor:pointer;transition:background .2s}.view-btn:hover{background:#2563eb}.reports-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem;display:none}.report-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000001a;transition:all .3s;text-decoration:none;color:inherit}.report-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #00000026}.card-header{display:flex;justify-content:space-between;padding:1rem;background:#f8fafc}.priority-badge{padding:.15rem .5rem;border-radius:10px;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.priority-badge.low{background:#dbeafe;color:#1e40af}.priority-badge.medium{background:#fef3c7;color:#b45309}.priority-badge.high{background:#fed7aa;color:#c2410c}.priority-badge.urgent{background:#fecaca;color:#dc2626}.report-image{width:100%;height:200px;object-fit:cover}.card-content{padding:1.5rem}.card-content h3{margin:0 0 .5rem;color:#1e293b}.card-content p{color:#64748b;font-size:.875rem;line-height:1.5;margin-bottom:1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-footer{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid #e2e8f0;font-size:.875rem}.category{background:#e0f2fe;color:#0369a1;padding:.25rem .75rem;border-radius:6px;text-transform:capitalize;font-weight:500}.date{color:#94a3b8}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:#fff;border-radius:16px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#1e3a8a,#3b82f6);border-radius:16px 16px 0 0}.modal-header h2{margin:0;color:#fff;font-size:1.5rem;flex:1}.modal-close{background:#fff3;border:none;color:#fff;cursor:pointer;padding:.5rem;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:background .2s}.modal-close:hover{background:#ffffff4d}.detail-row{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:.5rem}.detail-row strong{color:#1e293b!important;font-weight:600;font-size:.875rem;text-transform:uppercase;letter-spacing:.5px;-webkit-text-fill-color:#1e293b}.detail-row span,.detail-row p{color:#64748b;font-size:1rem;margin:0}.status-select{flex:1;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;font-weight:500;color:#1e293b;background:#fff;cursor:pointer;transition:border-color .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none}.status-select:focus{outline:none;border-color:#3b82f6}.update-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#3b82f6,#1e3a8a);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;white-space:nowrap}.update-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #3b82f666}.update-button:disabled{opacity:.5;cursor:not-allowed}.category-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.875rem;font-weight:600;text-transform:capitalize;background:#e0f2fe;color:#0369a1}.pagination{display:flex;justify-content:center;align-items:center;gap:1.5rem;margin-top:2rem;padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.pagination-btn{padding:.75rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s}.pagination-btn:hover:not(:disabled){background:#2563eb;transform:translateY(-1px)}.pagination-btn:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed;transform:none}.pagination-info{display:flex;flex-direction:column;align-items:center;gap:.25rem;font-weight:600;color:#374151}.pagination-count{font-size:.875rem;color:#6b7280;font-weight:400}@media (max-width: 768px){.reports-grid{grid-template-columns:1fr}.modal-content{max-height:95vh}.pagination{flex-direction:column;gap:1rem}.pagination-btn{width:100%}.reports-table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.reports-table{min-width:1000px}.reports-table th,.reports-table td{padding:.75rem .5rem;font-size:.875rem}.page-header{flex-direction:column;gap:1rem;align-items:stretch}.filter-btn{width:100%;justify-content:center}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.report-detail{max-width:1200px;margin:0 auto;padding:2rem}.back-btn{background:none;border:none;color:#6366f1;font-size:1rem;cursor:pointer;margin-bottom:1.5rem;padding:.5rem 0;display:flex;align-items:center;gap:.5rem}.back-btn:hover{color:#4f46e5;text-decoration:underline}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.detail-header h1{font-size:2rem;color:#1f2937;margin:0 0 .5rem}.report-id{color:#6b7280;font-size:.9rem;margin:0}.badges{display:flex;gap:.5rem;flex-wrap:wrap}.status-badge,.priority-badge{padding:.5rem 1rem;border-radius:9999px;font-size:.875rem;font-weight:600;text-transform:capitalize}.status-badge.open{background-color:#fef3c7;color:#92400e}.status-badge.in_progress{background-color:#dbeafe;color:#1e40af}.status-badge.resolved{background-color:#d1fae5;color:#065f46}.status-badge.rejected{background-color:#fee2e2;color:#991b1b}.priority-badge.low{background-color:#f3f4f6;color:#4b5563}.priority-badge.medium{background-color:#fef3c7;color:#92400e}.priority-badge.high{background-color:#fed7aa;color:#9a3412}.priority-badge.urgent{background-color:#fecaca;color:#991b1b}.photo-container{width:100%;max-width:800px;margin:0 auto 2rem;border-radius:.5rem;overflow:hidden;box-shadow:0 4px 6px -1px #0000001a}.photo-container img{width:100%;height:auto;display:block}.detail-content{background:#fff;border-radius:.5rem;padding:2rem;box-shadow:0 1px 3px #0000001a}.detail-content section{margin-bottom:2rem}.detail-content section:last-child{margin-bottom:0}.detail-content h2{font-size:1.25rem;font-weight:600;color:#1f2937;margin-bottom:1rem}.detail-content p{color:#4b5563;line-height:1.6}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.info-item{display:flex;gap:1rem;align-items:flex-start}.info-item svg{color:#6366f1;flex-shrink:0;margin-top:.25rem}.info-item label{display:block;font-size:.875rem;font-weight:600;color:#6b7280;margin-bottom:.25rem}.info-item p{margin:0;color:#1f2937}.map-container-detail{margin:2rem 0;padding:1.5rem;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.map-container-detail h2{margin:0 0 1rem;font-size:1.1rem;color:#1f2937;font-weight:600}.map-container-detail .leaflet-container{border-radius:6px;box-shadow:0 1px 3px #0000001a}.map-container-detail p{margin:0;font-size:.875rem;color:#6b7280}.btn-map{background:#6366f1!important;color:#fff!important;padding:.5rem 1rem!important;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.btn-map:hover{background:#4f46e5!important}.btn-map:disabled{background:#d1d5db!important;cursor:not-allowed}.status-actions{border-top:1px solid #e5e7eb;padding-top:2rem}.action-buttons{display:flex;gap:1rem;flex-wrap:wrap}.btn{padding:.75rem 1.5rem;border:none;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-progress{background-color:#dbeafe;color:#1e40af}.btn-progress:hover:not(:disabled){background-color:#bfdbfe}.btn-resolved{background-color:#d1fae5;color:#065f46}.btn-resolved:hover:not(:disabled){background-color:#a7f3d0}.btn-rejected{background-color:#fee2e2;color:#991b1b}.btn-rejected:hover:not(:disabled){background-color:#fecaca}.btn-chat{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s;display:flex;align-items:center;gap:.5rem}.btn-chat:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-broadcast{background:linear-gradient(135deg,#f97316,#dc2626);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s;display:flex;align-items:center;gap:.5rem}.btn-broadcast:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #dc262666}.btn-broadcast:disabled{opacity:.6;cursor:not-allowed}.btn-send{background-color:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.btn-send:hover{background-color:#e5e7eb;border-color:#9ca3af}.loading,.error{text-align:center;padding:4rem 2rem;font-size:1.125rem;color:#6b7280}.error{color:#991b1b}@media (max-width: 768px){.report-detail{padding:1rem}.detail-header{flex-direction:column}.detail-header h1{font-size:1.5rem}.detail-content{padding:1.5rem}.action-buttons{flex-direction:column}.btn{width:100%;justify-content:center}.map-container-detail{width:100%}.map-container-detail .leaflet-container{height:250px!important}}.sensors-page{max-width:1400px}.type-badge{display:inline-block;padding:.375rem .875rem;background:#dbeafe;color:#1e40af;border-radius:6px;font-size:.875rem;font-weight:600;text-transform:capitalize}.status-badge{display:inline-block;padding:.375rem .875rem;border-radius:6px;font-size:.875rem;font-weight:600;text-transform:uppercase}.status-badge.active{background:#d1fae5;color:#065f46}.status-badge.inactive{background:#fee2e2;color:#991b1b}.status-toggle.active{background:#22c55e;color:#fff}.status-toggle.active:hover{background:#16a34a}.status-toggle.inactive{background:#6b7280;color:#fff}.status-toggle.inactive:hover{background:#4b5563}.action-icon-btn{padding:.5rem;border:none;border-radius:6px;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;margin-left:.5rem}.action-icon-btn.edit{background:#3b82f6;color:#fff}.action-icon-btn.edit:hover{background:#2563eb}.action-icon-btn.delete{background:#ef4444;color:#fff}.action-icon-btn.delete:hover{background:#dc2626}.action-icon-btn:disabled{opacity:.5;cursor:not-allowed}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:center;justify-content:center;padding:16px;z-index:9999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000080;max-width:600px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{padding:1.5rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.modal-header h2{margin:0;font-size:1.5rem;color:#1f2937}.modal-close:hover{background:#f3f4f6;color:#1f2937}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#374151;font-size:.875rem}.form-input{width:100%;padding:.625rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;transition:border-color .2s}.form-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.modal-footer{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:.75rem}.btn-secondary{padding:.625rem 1.25rem;background:#f3f4f6;color:#374151;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s}.btn-primary{padding:.625rem 1.25rem;background:#3b82f6;color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s}.btn-primary:hover{background:#2563eb}@media (max-width: 768px){.data-table{font-size:.875rem}.data-table th,.data-table td{padding:.75rem .5rem}}.cameras-page{max-width:1400px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.page-header h1{color:#1e3a8a;margin:0}.header-actions{display:flex;gap:.75rem}.grid-menu-container{position:relative}.action-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:1rem;transition:all .2s}.action-btn-primary{background:#3b82f6;color:#fff}.action-btn-primary:hover{background:#2563eb}.action-btn-secondary{background:#8b5cf6;color:#fff}.action-btn-secondary:hover{background:#7c3aed}.dropdown-menu{position:absolute;right:0;top:calc(100% + .5rem);min-width:220px;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid #e5e7eb;padding:.5rem 0;z-index:10}.dropdown-item{width:100%;display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:none;border:none;cursor:pointer;font-size:.875rem;color:#374151;transition:background .2s;text-align:left}.dropdown-item:hover{background:#f3f4f6}.table-container{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.data-table{width:100%;border-collapse:collapse}.data-table thead{background:#f3f4f6;border-bottom:2px solid #e5e7eb}.data-table th{padding:1rem;text-align:left;font-weight:600;color:#374151;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.data-table tbody tr{border-bottom:1px solid #e5e7eb;transition:background-color .2s}.data-table tbody tr:hover{background:#f9fafb}.data-table td{padding:1rem;vertical-align:middle}.status-indicator{width:12px;height:12px;border-radius:50%;flex-shrink:0}.status-indicator.active{background:#22c55e}.status-indicator.inactive{background:#eab308}.status-toggle{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}.status-toggle.active{background:#d1fae5;color:#065f46}.status-toggle.active:hover{background:#a7f3d0}.status-toggle.inactive{background:#fef3c7;color:#92400e}.status-toggle.inactive:hover{background:#fde68a}.status-toggle:disabled{opacity:.5;cursor:not-allowed}.action-buttons{display:flex;gap:.5rem}.action-icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:.5rem;border:none;border-radius:6px;cursor:pointer;transition:all .2s}.action-icon-btn.success{background:#d1fae5;color:#065f46}.action-icon-btn.success:hover{background:#a7f3d0}.action-icon-btn.primary{background:#dbeafe;color:#1e40af}.action-icon-btn.primary:hover{background:#bfdbfe}.action-icon-btn.danger{background:#fee2e2;color:#991b1b}.action-icon-btn.danger:hover{background:#fecaca}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;text-align:center}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:9999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000080;max-width:1000px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:2px solid #e5e7eb;background:#fff;position:sticky;top:0;z-index:10}.modal-header h2{margin:0;font-size:1.5rem;font-weight:700;color:#1e3a8a}.modal-close{background:none;border:none;color:#6b7280;cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s}.modal-close:hover{background:#f3f4f6;color:#374151}.modal-body{padding:1.5rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;font-size:.875rem;font-weight:600;color:#374151;margin-bottom:.5rem}.form-input{width:100%;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;color:#1f2937;background:#fff;transition:border-color .2s}.form-input:focus{outline:none;border-color:#3b82f6}.form-input::placeholder{color:#9ca3af}.map-container{height:300px;width:100%;border-radius:8px;overflow:hidden;border:2px solid #d1d5db}.coordinates-display{display:flex;gap:1rem;margin-top:.75rem;padding:.75rem;background:#f0fdf4;border-radius:8px;border:2px solid #86efac}.coordinate-badge{display:inline-block;padding:.5rem 1rem;background:#fff;border:1px solid #86efac;border-radius:6px;font-weight:600;color:#166534;font-size:.875rem;font-family:monospace}.help-text{margin-top:.5rem;font-size:.75rem;color:#6b7280}.help-text.warning{color:#d97706;font-weight:600;background:#fef3c7;padding:.5rem .75rem;border-radius:6px;border-left:3px solid #f59e0b}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions{display:flex;gap:1rem;padding-top:1.5rem;border-top:2px solid #e5e7eb;margin-top:1.5rem}.btn-primary{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.btn-primary:hover:not(:disabled){background:#2563eb}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#e5e7eb}@media (max-width: 768px){.header-actions{flex-direction:column;width:100%}.action-btn{width:100%;justify-content:center}.data-table{font-size:.875rem}.data-table th,.data-table td{padding:.75rem .5rem}.form-row{grid-template-columns:1fr}.form-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%}}.camera-grid-page{flex:1;min-height:0;display:flex;flex-direction:column;background:#0f172a;overflow:hidden}.camera-grid-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:linear-gradient(135deg,#1e293b,#0f172a);border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0;min-height:60px}.header-left{display:flex;align-items:center;gap:1rem}.header-left h1{margin:0;font-size:1.5rem;font-weight:600;color:#fff}.camera-count{padding:.25rem .75rem;background:#22c55e33;color:#22c55e;border-radius:12px;font-size:.875rem;font-weight:500}.header-controls{display:flex;align-items:center;gap:.75rem}.btn-select-cameras{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#3b82f633;border:1px solid rgba(59,130,246,.3);border-radius:8px;color:#60a5fa;font-weight:500;cursor:pointer;transition:all .2s;font-size:.875rem}.btn-select-cameras:hover{background:#3b82f64d;border-color:#3b82f680}.camera-selector-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.camera-selector-modal{background:#1e293b;border-radius:12px;width:90%;max-width:600px;max-height:80vh;display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.1);box-shadow:0 20px 60px #00000080}.selector-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.selector-header h3{margin:0;color:#fff;font-size:1.25rem}.btn-close{background:transparent;border:none;color:#fff9;font-size:1.5rem;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.btn-close:hover{background:#ffffff1a;color:#fff}.selector-actions{display:flex;gap:.5rem;padding:1rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.btn-action{flex:1;padding:.5rem 1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;color:#fff;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-action:hover{background:#ffffff1a;border-color:#fff3}.camera-list{flex:1;overflow-y:auto;padding:1rem 1.5rem}.camera-checkbox-item{display:flex;align-items:center;gap:1rem;padding:1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.05);border-radius:8px;margin-bottom:.5rem;cursor:pointer;transition:all .2s}.camera-checkbox-item:hover{background:#ffffff0f;border-color:#ffffff1a}.camera-checkbox-item input[type=checkbox]{display:none}.checkbox-custom{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-radius:4px;position:relative;flex-shrink:0;transition:all .2s}.camera-checkbox-item input:checked~.checkbox-custom{background:#3b82f6;border-color:#3b82f6}.camera-checkbox-item input:checked~.checkbox-custom:after{content:"✓";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:14px;font-weight:700}.camera-info{flex:1;display:flex;flex-direction:column;gap:.25rem}.camera-checkbox-name{color:#fff;font-weight:500;font-size:.9rem}.camera-checkbox-location{color:#ffffff80;font-size:.75rem}.status-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;flex-shrink:0}.status-badge.active{background:#22c55e33;color:#22c55e}.status-badge.inactive{background:#9ca3af33;color:#9ca3af}.layout-selector{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.layout-select{background:transparent;border:none;color:#fff;font-size:.875rem;font-weight:500;cursor:pointer;outline:none;padding:.25rem .5rem}.layout-select option{background:#1e293b;color:#fff}.btn-icon{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;height:36px;padding:0 12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:13px;white-space:nowrap;cursor:pointer;transition:all .2s}.btn-icon:hover{background:#ffffff1a;border-color:#fff3}.camera-grid-container{flex:1;display:grid;gap:4px;padding:4px;overflow:hidden;min-height:0}.camera-grid-container:fullscreen{background:#000;padding:0;gap:2px}.camera-cell{position:relative;background:#1e293b;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.05)}.camera-grid-container:fullscreen .camera-cell{border-radius:0}.camera-cell-empty{background:#1e293b4d;border:1px dashed rgba(255,255,255,.1)}.empty-cell-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:#ffffff4d;font-size:.875rem}.camera-header{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#00000080;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.05);flex-shrink:0;z-index:10;min-height:36px}.camera-name{flex:1;font-weight:500;color:#fff;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-indicator{display:flex;align-items:center;gap:.25rem;font-size:.65rem;font-weight:600;color:#22c55e;padding:.2rem .4rem;background:#22c55e1a;border-radius:4px}.live-dot{width:5px;height:5px;background:#22c55e;border-radius:50%;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.camera-stream{flex:1;position:relative;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:0}.stream-image{width:100%;height:100%;object-fit:cover}.stream-video{width:100%;height:100%;object-fit:cover;background:#000}.stream-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:#ef4444}.error-icon{font-size:2rem}.error-text{font-size:.875rem;font-weight:500}.camera-footer{padding:.4rem .75rem;background:#00000080;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.05);flex-shrink:0;min-height:28px}.camera-location{font-size:.75rem;color:#fff9}.camera-grid-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:1rem;color:#fff}.spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.1);border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.camera-grid-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:1rem;color:#ef4444}.btn-retry{padding:.75rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background .2s}.btn-retry:hover{background:#2563eb}@media (max-width: 768px){.camera-grid-header{flex-direction:column;align-items:flex-start;gap:.75rem;padding:.75rem 1rem}.header-controls{width:100%;flex-wrap:wrap;gap:.5rem}.btn-select-cameras{flex:1;justify-content:center;min-width:120px}.layout-selector{flex:1;min-width:80px}.btn-icon{width:36px;height:36px;padding:0;flex-shrink:0}.btn-icon span{display:none}.header-left h1{font-size:1.1rem}.camera-name{font-size:.75rem}}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform .3s ease-out,opacity .3s ease-in;-moz-transition:-moz-transform .3s ease-out,opacity .3s ease-in;-o-transition:-o-transform .3s ease-out,opacity .3s ease-in;transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset .3s ease-out,-webkit-stroke-opacity .3s ease-in;-moz-transition:-moz-stroke-dashoffset .3s ease-out,-moz-stroke-opacity .3s ease-in;-o-transition:-o-stroke-dashoffset .3s ease-out,-o-stroke-opacity .3s ease-in;transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}.marker-cluster-small{background-color:#b5e28c99}.marker-cluster-small div{background-color:#6ecc3999}.marker-cluster-medium{background-color:#f1d35799}.marker-cluster-medium div{background-color:#f0c20c99}.marker-cluster-large{background-color:#fd9c7399}.marker-cluster-large div{background-color:#f1801799}.leaflet-oldie .marker-cluster-small{background-color:#b5e28c}.leaflet-oldie .marker-cluster-small div{background-color:#6ecc39}.leaflet-oldie .marker-cluster-medium{background-color:#f1d357}.leaflet-oldie .marker-cluster-medium div{background-color:#f0c20c}.leaflet-oldie .marker-cluster-large{background-color:#fd9c73}.leaflet-oldie .marker-cluster-large div{background-color:#f18017}.marker-cluster{background-clip:padding-box;border-radius:20px}.marker-cluster div{width:30px;height:30px;margin-left:5px;margin-top:5px;text-align:center;border-radius:15px;font:12px Helvetica Neue,Arial,Helvetica,sans-serif}.map-page{height:calc(100vh - 2rem);display:flex;flex-direction:column;padding:.5rem}.map-page h1{margin-bottom:1rem;color:#1e3a8a}.map-legend{display:flex;gap:2rem;padding:1rem;background:#fff;border-radius:8px;margin-bottom:1rem;box-shadow:0 1px 3px #0000001a;flex-wrap:wrap}.legend-section{display:flex;flex-direction:column;gap:.5rem}.legend-section strong{color:#1f2937;font-size:.875rem;margin-bottom:.25rem}.legend-item{display:flex;align-items:center;gap:.5rem}.legend-marker{width:20px;height:20px;border-radius:50%;border:2px solid white;box-shadow:0 1px 3px #0000004d;display:flex;align-items:center;justify-content:center;font-size:12px}.legend-item span:last-child{font-size:.875rem;color:#4b5563;font-weight:500}.map-container{flex:1;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000001a;min-height:calc(100vh - 200px)}.custom-marker,.custom-cluster-icon{background:transparent!important;border:none!important}.marker-cluster{background-clip:padding-box;border-radius:50%}.marker-cluster div{width:100%;height:100%;margin-left:5px;margin-top:5px;text-align:center;border-radius:50%;font:12px Helvetica Neue,Arial,Helvetica,sans-serif}.marker-cluster span{line-height:30px}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.marker-cluster:hover{transform:scale(1.1);transition:transform .2s ease-in-out}@media (max-width: 768px){.map-page{padding:.25rem;height:calc(100vh - 1rem)}.map-page h1{font-size:1.25rem;margin-bottom:.5rem}.map-legend{flex-direction:column;gap:.5rem;padding:.75rem;margin-bottom:.5rem}.map-container{min-height:calc(100vh - 160px)}}.statistics-page{max-width:1400px}.page-header{margin-bottom:2rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.page-header h1{color:#1e3a8a;margin:0 0 .5rem;font-size:2rem}.broadcast-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #667eea4d}.broadcast-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.broadcast-btn:disabled{opacity:.6;cursor:not-allowed}.alert{padding:1rem 1.5rem;border-radius:8px;margin-bottom:1.5rem;font-weight:500;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.subtitle{color:#64748b;font-size:1rem;margin:0}.loading{text-align:center;padding:3rem;font-size:1.25rem;color:#64748b}.stats-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-box{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;display:flex;align-items:center;gap:1.5rem;transition:transform .2s}.stat-box:hover{transform:translateY(-4px);box-shadow:0 4px 16px #00000026}.stat-icon{width:70px;height:70px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.stat-info h3{margin:0 0 .5rem;color:#64748b;font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.stat-number{margin:0;font-size:2rem;font-weight:700;color:#1e293b}.charts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:1.5rem;margin-bottom:2rem}.chart-card{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.chart-card.full-width{grid-column:1 / -1}.chart-card h2{margin:0 0 1.5rem;color:#1e3a8a;font-size:1.25rem;padding-bottom:1rem;border-bottom:2px solid #e5e7eb}.custom-tooltip{background:#fff;padding:.75rem 1rem;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #0000001a}.custom-tooltip .label{margin:0 0 .25rem;font-weight:600;color:#1f2937;font-size:.875rem}.custom-tooltip .value{margin:0;color:#3b82f6;font-weight:600;font-size:1rem}.user-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-top:2rem}.user-item{display:flex;align-items:center;gap:1rem;padding:1rem;background:#f8fafc;border-radius:8px;border-left:4px solid #3b82f6;transition:all .2s}.user-item:hover{background:#eff6ff;transform:translate(4px)}.user-rank{width:40px;height:40px;background:linear-gradient(135deg,#3b82f6,#1e3a8a);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem}.user-info{flex:1;display:flex;flex-direction:column;gap:.25rem}.user-name{font-weight:600;color:#1f2937;font-size:.9375rem}.user-count{color:#64748b;font-size:.8125rem}.no-data{text-align:center;padding:2rem;color:#94a3b8;font-size:1rem}@media (max-width: 1024px){.charts-grid{grid-template-columns:1fr}}@media (max-width: 768px){.stats-overview,.user-list{grid-template-columns:1fr}}.chat-page{padding:2rem;max-width:1400px;margin:0 auto}.chat-container{display:grid;grid-template-columns:350px 1fr;gap:1.5rem;margin-top:1.5rem}.chat-container-new{display:grid;grid-template-columns:350px 1fr;gap:1.5rem;margin-top:1.5rem;height:calc(100vh - 200px);max-height:700px}.conversations-panel{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden;display:flex;flex-direction:column}.conversations-list{flex:1;overflow-y:auto;padding:.5rem}.conversation-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:8px;cursor:pointer;transition:all .2s;margin-bottom:.5rem;border-left:3px solid transparent}.conversation-item:hover{background:#f3f4f6}.conversation-item.active{background:#eff6ff;border-left-color:#3b82f6}.conversation-info{flex:1;min-width:0}.conversation-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.message-time{font-size:.75rem;color:#9ca3af}.last-message-preview{font-size:.875rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unread-badge{min-width:24px;height:24px;padding:0 6px;background:#ef4444;color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0}.no-conversations{text-align:center;padding:3rem 1rem;color:#9ca3af}.no-conversations p:first-child{font-size:1.5rem;margin-bottom:.5rem}.chat-panel{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;display:flex;flex-direction:column;overflow:hidden}.chat-header{padding:1rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom:1px solid #e5e7eb}.chat-user-info{display:flex;align-items:center;gap:.75rem}.chat-user-name{font-weight:600;font-size:1.125rem}.chat-user-id{font-size:.875rem;opacity:.9}.messages-container{flex:1;overflow-y:auto;padding:1.5rem;background:#f9fafb;display:flex;flex-direction:column;gap:1rem}.message-bubble{max-width:70%;padding:.75rem 1rem;border-radius:12px;word-wrap:break-word;animation:fadeIn .3s}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-from-user{align-self:flex-start;background:#fff;border:1px solid #e5e7eb;border-bottom-left-radius:4px}.message-from-admin{align-self:flex-end;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:4px}.message-content{margin-bottom:.25rem;line-height:1.5}.message-timestamp{font-size:.75rem;opacity:.7;text-align:right}.message-from-user .message-timestamp{color:#6b7280}.loading-messages,.no-messages{text-align:center;color:#9ca3af;padding:3rem 1rem}.no-messages p:first-child{font-size:1.5rem;margin-bottom:.5rem}.message-input-container{padding:1rem 1.5rem;background:#fff;border-top:1px solid #e5e7eb;display:flex;gap:.75rem;align-items:flex-end}.message-input-field{flex:1;padding:.75rem;border:1px solid #d1d5db;border-radius:8px;font-size:1rem;font-family:inherit;resize:none;outline:none;transition:border-color .2s;max-height:120px;overflow-y:auto}.message-input-field:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.send-button-new{padding:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;min-width:48px;height:48px}.send-button-new:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.send-button-new:disabled{opacity:.5;cursor:not-allowed}.no-conversation-selected{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#9ca3af;text-align:center;padding:2rem}.no-conversation-selected h3{margin:1rem 0 .5rem;color:#6b7280}.no-conversation-selected p{color:#9ca3af}.users-panel{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden;display:flex;flex-direction:column;max-height:700px}.panel-header{padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:600}.panel-header h3{margin:0 0 .75rem;display:flex;align-items:center;gap:.5rem}.mode-switch{display:flex;gap:.5rem}.mode-switch button{flex:1;padding:.5rem;border:none;background:#fff3;color:#fff;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.mode-switch button.active{background:#fff;color:#667eea;font-weight:600}.mode-switch button:hover:not(.active){background:#ffffff4d}.selection-controls{padding:.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e5e7eb;display:flex;gap:.5rem;align-items:center}.btn-small{padding:.4rem .75rem;font-size:.8rem;border:1px solid #d1d5db;background:#fff;border-radius:6px;cursor:pointer;transition:all .2s}.btn-small:hover{background:#f3f4f6;border-color:#9ca3af}.selection-count{margin-left:auto;font-size:.875rem;color:#6b7280;font-weight:500}.users-list{flex:1;overflow-y:auto;padding:.5rem}.broadcast-info{padding:2rem 1rem;text-align:center;color:#6b7280}.broadcast-info p:first-child{font-size:1.25rem;font-weight:600;color:#374151;margin-bottom:.5rem}.user-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:8px;cursor:pointer;transition:all .2s;margin-bottom:.5rem;border:2px solid transparent}.user-item:hover{background:#f3f4f6}.user-item.selected{background:#eff6ff;border-color:#3b82f6}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0}.user-info{flex:1;min-width:0}.user-name{font-weight:600;color:#374151;margin-bottom:.125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-email{font-size:.8rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-badge{width:24px;height:24px;background:#3b82f6;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:700;flex-shrink:0}.no-users{text-align:center;padding:2rem 1rem;color:#9ca3af}.message-panel{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;display:flex;flex-direction:column;max-height:700px}.message-input{flex:1;padding:1.5rem;border:none;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;font-size:1rem;font-family:inherit;resize:none;outline:none}.message-input:focus{background:#fafafa}.message-footer{padding:1rem 1.5rem;display:flex;justify-content:space-between;align-items:center;background:#f8f9fa;border-radius:0 0 12px 12px}.char-count{font-size:.875rem;color:#6b7280}.send-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:all .3s}.send-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.send-button:disabled{opacity:.5;cursor:not-allowed}.alert{padding:1rem 1.5rem;border-radius:8px;margin-bottom:1rem;font-weight:500}.alert-success{background:#d1fae5;color:#065f46;border:1px solid #6ee7b7}.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}@media (max-width: 968px){.chat-page{padding:1rem}.chat-container{grid-template-columns:1fr}.chat-container-new{grid-template-columns:1fr;gap:1rem;height:auto;max-height:none;position:relative}.conversations-panel{max-height:200px;border-radius:8px}.conversations-panel.hidden-on-mobile{display:none}.conversations-list{max-height:150px}.chat-panel{height:calc(100vh - 350px);min-height:300px;display:flex;flex-direction:column}.chat-panel.hidden-on-mobile{display:none}.chat-panel.show-chat-mobile{display:flex}.messages-container{flex:1;overflow-y:auto;min-height:200px;padding:1rem}.message-input-container{padding:.75rem;gap:.5rem}.message-input-field{padding:.6rem;font-size:16px;min-height:40px}.send-button-new{padding:.6rem;min-width:44px;min-height:44px}.users-panel{max-height:400px}.page-header{flex-direction:column;gap:1rem}.broadcast-btn{width:100%}.back-button-mobile{display:none!important}}@media (max-width: 480px){.chat-page{padding:.5rem}.page-header h1{font-size:1.25rem}.chat-container-new{grid-template-columns:1fr}.conversations-panel{display:block}.conversations-panel.hidden-on-mobile{display:none!important}.chat-panel{height:calc(100vh - 200px)}.chat-panel.hidden-on-mobile{display:none!important}.chat-panel.show-chat-mobile{display:flex!important;position:absolute;top:0;left:0;right:0;bottom:0;z-index:10}.back-button-mobile{display:block!important;padding:0 1rem;margin-right:auto}.messages-container{padding:.75rem}.message-item{max-width:90%}.message-input-container{flex-wrap:nowrap;padding:.5rem}.message-input-field{font-size:16px;padding:.5rem}.send-button-new{min-width:40px;min-height:40px}}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0f172a;padding:2rem;position:relative;overflow:hidden}.login-page:before{content:"";position:absolute;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(20,184,166,.1) 0%,transparent 65%);top:-200px;right:-150px;pointer-events:none}.login-page:after{content:"";position:absolute;width:500px;height:500px;border-radius:50%;background:radial-gradient(circle,rgba(99,102,241,.07) 0%,transparent 65%);bottom:-150px;left:-150px;pointer-events:none}.login-container{background:#1e293bf2;border:1px solid rgba(148,163,184,.1);border-radius:24px;box-shadow:0 32px 64px #00000080,0 0 0 1px #ffffff0a;padding:3rem 3.5rem;width:100%;max-width:460px;position:relative;z-index:1}.login-header{text-align:center;margin-bottom:2.5rem}.login-header img{max-width:260px;width:100%;filter:brightness(1.05)}.login-header p{color:#64748b;font-size:.875rem;letter-spacing:.025em;margin:0}.login-form{display:flex;flex-direction:column;gap:1.5rem}.error-alert{background:#ef44441f;border:1px solid rgba(239,68,68,.25);color:#fca5a5;padding:.875rem 1rem;border-radius:10px;font-size:.875rem;text-align:center}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:500;color:#cbd5e1;font-size:.875rem;letter-spacing:.01em}.form-group input{padding:.875rem 1rem;background:#0f172acc!important;border:1px solid rgba(148,163,184,.15)!important;border-radius:10px;font-size:.9375rem;color:#f1f5f9!important;transition:all .2s;width:100%}.form-group input::placeholder{color:#475569!important}.form-group input:focus{outline:none;border-color:#14b8a6!important;box-shadow:0 0 0 3px #14b8a626}.password-input{position:relative;display:flex;align-items:center}.password-input input{flex:1;padding-right:3rem}.toggle-password{position:absolute;right:.875rem;background:none!important;border:none!important;color:#64748b!important;cursor:pointer;padding:.375rem;display:flex;align-items:center;justify-content:center;transition:color .2s;border-radius:6px!important}.toggle-password:hover{color:#94a3b8!important;border-color:transparent!important}.login-btn{background:linear-gradient(135deg,#14b8a6,#0d9488)!important;color:#fff!important;border:none!important;padding:.9375rem 1rem!important;border-radius:10px!important;font-size:.9375rem!important;font-weight:600!important;cursor:pointer;transition:transform .18s,box-shadow .18s!important;margin-top:.5rem;letter-spacing:.025em;width:100%}.login-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 24px #14b8a666!important;border-color:transparent!important}.login-btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}.login-footer{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid rgba(148,163,184,.1);text-align:center;color:#475569;font-size:.8125rem}.success-message{text-align:center;padding:1rem 0}.success-icon{color:#14b8a6;margin-bottom:1.25rem}.success-message h2{color:#f1f5f9;font-size:1.25rem;margin-bottom:.75rem}.success-message>p{color:#64748b;margin-bottom:0}.token-container{background:#f9fafb;border:2px solid #e5e7eb;border-radius:8px;padding:1rem;margin:1.5rem 0;display:flex;gap:1rem;align-items:center}.token-display{flex:1;background:#fff;padding:.75rem;border-radius:6px;font-family:Courier New,monospace;font-size:.75rem;color:#374151;word-break:break-all;max-height:100px;overflow-y:auto}.copy-btn{background:#667eea;color:#fff;border:none;padding:.75rem 1rem;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;white-space:nowrap;transition:background .2s}.copy-btn:hover{background:#5568d3}.token-instructions{background:#eff6ff;border-left:4px solid #3b82f6;padding:1rem;text-align:left;border-radius:4px;margin:1.5rem 0}.token-instructions h3{margin:0 0 .5rem;color:#1e40af;font-size:.875rem}.token-instructions ol{margin:.5rem 0;padding-left:1.5rem}.token-instructions li{color:#1e40af;font-size:.875rem;margin:.25rem 0}.token-instructions code{background:#fff;padding:.25rem .5rem;border-radius:4px;font-family:Courier New,monospace;font-size:.75rem;color:#374151}.redirect-message{color:#6b7280;font-style:italic;margin-top:1.5rem}@media (max-width: 640px){.login-container{padding:2rem}.token-container{flex-direction:column}.copy-btn{width:100%;justify-content:center}}
