/* Public Lighting Management Styles */
#map {
    height: 100%;
    width: 100%;
}

.custom-div-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light Bulb Core */
.light-bulb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 10;
    position: relative;
}

/* Glowing Halo Effect */
.light-halo {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    pointer-events: none;
    transition: all 0.5s ease-out;
}

/* Animation for Alarms */
.alarm-pulse {
    animation: alarm-pulse-animation 1.5s infinite;
}

@keyframes alarm-pulse-animation {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Animation for Active Lights (subtle breathing) */
.light-on-breathing {
    animation: light-breathing 4s ease-in-out infinite;
}

@keyframes light-breathing {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

.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;
}
.marker-cluster span {
    line-height: 30px;
}

.cursor-pointer {
    cursor: pointer;
}

.tag-filter-btn {
    border: 1px solid #dee2e6;
    background: #fff;
}

#left-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#group-tree {
    flex: 1 1 0 !important;
    min-height: 0;
    overflow: auto;
}

#tag-section {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#tag-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#map-tools-section {
    flex: 0 0 auto;
}

.management-popup-body,
.management-tab-content,
.sensor-grid-fill {
    min-height: 0;
}

.management-popup-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.management-tab-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sensor-grid-fill {
    flex: 1 1 auto;
}

.tag-filter-btn:hover {
    background: #f1f7ff;
}

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

.sensor-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.sensor-metadata-grid > div,
.feature-panel {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

.sensor-metadata-grid span {
    color: #6c757d;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}

.sensor-metadata-grid strong {
    display: block;
    font-size: 13px;
    word-break: break-word;
}

.feature-slider-label {
    display: block;
    margin-bottom: 18px;
}

.feature-slider {
    padding-top: 4px;
}

/* Animation for Highlighting a sensor (Large Corona) */
.sensor-highlight-ping {
    animation: sensor-corona-anim 2s ease-out forwards;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.7) 0%, rgba(0, 123, 255, 0.3) 40%, rgba(0, 123, 255, 0) 70%);
    border-radius: 50%;
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 1000;
    pointer-events: none;
}

@keyframes sensor-corona-anim {
    0% { transform: scale(0.1); opacity: 0; }
    30% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* DataGrid Hover Improvements */
.dx-datagrid-rowsview .dx-row.dx-data-row:hover {
    background-color: #f0f7ff !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dx-datagrid-rowsview .dx-row.dx-data-row:hover td {
    color: #0056b3 !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Remove horizontal scroll */
}

/* Pointing Arrow Animation */
.sensor-pointing-arrow {
    animation: arrow-bounce 0.5s ease-in-out infinite alternate;
    color: #007bff;
    font-size: 32px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    pointer-events: none;
}

@keyframes arrow-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Pulsing Ring Highlight */
.sensor-pulsing-ring {
    border: 4px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    pointer-events: none;
    animation: ring-pulse 1s ease-out infinite;
}

.highlight-container {
    background: transparent !important;
    border: none !important;
}

@keyframes ring-pulse {
    0% { transform: scale(0.5); opacity: 1; border-width: 4px; }
    100% { transform: scale(2.5); opacity: 0; border-width: 1px; }
}
