/* Custom Styles for Croquis Dispatcher v1.1 */

/* Custom Scrollbar for Sidebar */
aside::-webkit-scrollbar {
    width: 6px;
}
aside::-webkit-scrollbar-track {
    background: #0f172a;
}
aside::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
aside::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Layer Button States */
.layer-btn {
    background-color: #0f172a;
    border-color: #334155;
    color: #94a3b8;
    transition: all 0.2s ease;
}
.layer-btn:hover {
    border-color: #0284c7;
    color: #f8fafc;
}
.layer-btn.active {
    background-color: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.4);
}

/* Mode Buttons Transition */
.mode-btn {
    transition: all 0.15s ease;
}
.mode-btn:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Tool Buttons Active State */
.tool-btn.active {
    background-color: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

/* Preset Markers Hover & Grab Cursor */
.preset-marker {
    transition: all 0.15s ease;
}
.preset-marker:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Custom Marker CSS DivIcons with Grab Cursor */
.custom-leaflet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    border: 2px solid white;
    cursor: grab;
    transition: transform 0.15s ease;
}
.custom-leaflet-icon:active {
    cursor: grabbing;
    transform: scale(1.2);
}

/* Text Label Tool Styling on Map with Grab Cursor */
.custom-leaflet-label {
    background-color: rgba(15, 23, 42, 0.95);
    border: 2px solid #0284c7;
    color: #f8fafc;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    cursor: grab;
}
.custom-leaflet-label:active {
    cursor: grabbing;
}

/* Leaflet Geoman Customization */
.leaflet-pm-toolbar {
    background: #1e293b !important;
    border: 1px solid #475569 !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.leaflet-pm-toolbar .leaflet-buttons-control-button {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid #334155 !important;
}
.leaflet-pm-toolbar .leaflet-buttons-control-button:hover {
    background-color: #0284c7 !important;
    color: white !important;
}

/* Leaflet Map Dark Theme Adjustment */
.leaflet-container {
    background-color: #090d16;
    font-family: inherit;
}

/* Google AdSense Placeholder animation */
.adsense-placeholder {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
