/**
 * ServPro - Dashboard Analytics Styles
 * 
 * Custom styles for dashboard analytics page
 * 
 * @version 1.0.0
 * @author ServPro Team
 */

/* Chart container styling */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

/* Upcoming services list styling */
.upcoming-service-item {
    padding: 0.75rem;
    border-left: 3px solid #4e73df;
    margin-bottom: 0.5rem;
    background-color: #f8f9fc;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.upcoming-service-item:hover {
    background-color: #e3e6f0;
}

.upcoming-service-item:last-child {
    margin-bottom: 0;
}

/* Section headings */
h5.text-gray-800 {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 1rem;
}

/* Card styling improvements */
.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Loading state */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4e73df;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Date range picker styling */
#dashboard-date-range {
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#dashboard-date-range:hover {
    border-color: #4e73df;
}

#dashboard-date-range:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* Animation for value updates */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

