/* Custom Styles for Disaster Relief Map */

/* Glass Effect */
.glass-effect {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-effect-strong {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Buttons */
.btn-primary {
    @apply px-6 py-3 bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white font-semibold rounded-xl shadow-lg shadow-blue-500/30 transition-all duration-300 hover:scale-105 hover:shadow-xl hover:shadow-blue-500/50;
}

.btn-secondary {
    @apply px-6 py-3 bg-white/10 hover:bg-white/20 text-white font-semibold rounded-xl border border-white/20 transition-all duration-300;
}

/* Input Fields */
.input-field {
    @apply px-4 py-3 bg-white/5 border border-white/10 rounded-xl text-white placeholder-white/40 focus:outline-none focus:ring-2 focus:ring-blue-500/50 focus:border-blue-500/50 transition-all;
}

/* Map Styles */
#map {
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    margin: 16px;
    font-size: 14px;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95);
}

.leaflet-container a.leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    padding: 8px 12px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: white;
}

/* Marker Cluster Styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.8);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: rgba(59, 130, 246, 0.8);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Quill Editor Dark Theme */
.ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.ql-container.ql-snow {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    color: white;
    min-height: 200px;
}

.ql-editor {
    color: white;
    min-height: 200px;
}

.ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.4);
}

.ql-snow .ql-stroke {
    stroke: rgba(255, 255, 255, 0.6);
}

.ql-snow .ql-fill {
    fill: rgba(255, 255, 255, 0.6);
}

.ql-snow .ql-picker-label {
    color: rgba(255, 255, 255, 0.6);
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button:hover .ql-fill {
    stroke: white;
    fill: white;
    color: white;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Slide Up Animation */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Prose Styling for Info Panel */
.prose {
    max-width: none;
}

.prose p {
    margin: 0.5em 0;
}

.prose ul, .prose ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.prose strong {
    color: #60a5fa;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
}

/* Custom Marker Icon */
.custom-marker {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #infoPanel {
        bottom: 80px;
    }
    
    .glass-effect-strong {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
}
