/* Filter Stats Panel Component Styles */

/* Z-Index Hierarchy:
 * - Map: 1
 * - Back button & Logo card: 1001
 * - Mobile overlay: 1001
 * - Filter panels: 1002 (above back button)
 */

/* Corner button styling */
#feed-corner-button {
    position: fixed !important;
    top: 140px !important;
    right: 0 !important;
    z-index: 1001 !important;
    transition: right 0.3s ease;
}

#feed-corner-button .btn {
    transition: all 0.3s ease;
}

#feed-corner-button .btn:hover {
    background-color: rgb(51, 51, 51) !important;
    transform: translateY(-2px);
    box-shadow: -4px 4px 12px rgba(51, 51, 51, 0.9) !important;
    color: #fff !important;
}

#feed-corner-button .btn:hover i {
    color: #326ffe !important;
}

/* Lateral panel styling */
#lateral-panel {
    font-family: 'Montserrat', sans-serif;
    z-index: 1002 !important; /* Higher than back button (1001) */
}

#lateral-panel h5,
#lateral-panel h6 {
    color: #333;
    font-weight: 600;
}

#lateral-panel label {
    color: #555;
    font-size: 0.9rem;
}

#lateral-panel .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

#lateral-panel .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
}

/* Mobile bottom panel styling */
#mobile-bottom-panel {
    font-family: 'Montserrat', sans-serif;
    z-index: 1002 !important; /* Higher than back button (1001) */
}

#mobile-bottom-panel h5,
#mobile-bottom-panel h6 {
    color: #333;
    font-weight: 600;
}

#mobile-bottom-panel label {
    color: #555;
    font-size: 0.9rem;
}

#mobile-bottom-panel .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

#mobile-bottom-panel .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
}

/* Professional Stats Cards Styling */
#lateral-panel .stats-card,
#mobile-bottom-panel .stats-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

#lateral-panel .stats-card:hover,
#mobile-bottom-panel .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Gradient card hover effects */
#lateral-panel .stats-card[style*="linear-gradient"]:hover,
#mobile-bottom-panel .stats-card[style*="linear-gradient"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Resolution rate card specific styling */
#lateral-panel .stats-card[style*="background:#f8f9fa"]:hover,
#mobile-bottom-panel .stats-card[style*="background:#f8f9fa"]:hover {
    background: #ffffff !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.15);
}

/* Progress bar animation */
#lateral-panel .stats-card[style*="background:#f8f9fa"] div[style*="background:linear-gradient(90deg, #28a745, #20c997)"] {
    animation: progressFill 1.5s ease-out;
}

#mobile-bottom-panel .stats-card[style*="background:#f8f9fa"] div[style*="background:linear-gradient(90deg, #28a745, #20c997)"] {
    animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
    from {
        width: 0% !important;
    }
    to {
        width: 50% !important;
    }
}

/* Statistics cards styling */
.stats-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #feed-corner-button {
        top: auto !important;
        bottom: 80px !important;
    }
    
    #feed-corner-button .btn {
        width: 45px !important;
        height: 45px !important;
        border-radius: 12px 0 0 12px !important;
    }
    
    #mobile-bottom-panel {
        height: 85vh !important;
    }
    
    /* Mobile stats card adjustments */
    #mobile-bottom-panel .stats-card {
        margin-bottom: 10px;
    }
    
    #mobile-bottom-panel .stats-card[style*="linear-gradient"] {
        padding: 14px !important;
    }
    
    #mobile-bottom-panel .stats-card[style*="linear-gradient"] div[style*="font-size:2rem"] {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    #feed-corner-button {
        top: auto !important;
        bottom: 70px !important;
    }
    
    #feed-corner-button .btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px 0 0 12px !important;
    }
    
    #mobile-bottom-panel {
        height: 90vh !important;
    }
    
    /* Small mobile stats card adjustments */
    #mobile-bottom-panel .stats-card[style*="linear-gradient"] {
        padding: 12px !important;
    }
    
    #mobile-bottom-panel .stats-card[style*="linear-gradient"] div[style*="font-size:2rem"] {
        font-size: 1.6rem !important;
    }
    
    #mobile-bottom-panel .stats-card[style*="linear-gradient"] div[style*="font-size:0.85rem"] {
        font-size: 0.8rem !important;
    }
} 