/**
 * EMP Graph Controls CSS
 * Styling for interactive date range selection controls on graphs
 * Version: 1.0
 */

/* Main controls container */
.emp-date-range-controls {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #e7eaec;
}

/* Button group styling */
.emp-date-range-controls .btn-group {
    margin-right: 10px;
}

.emp-date-range-controls .btn-group .btn {
    font-size: 12px;
    padding: 5px 12px;
}

/* Date input styling */
.emp-date-range-controls .input-group-addon {
    min-width: 50px;
    font-size: 12px;
    background-color: #fff;
    border-color: #e5e6e7;
}

.emp-date-range-controls .form-control {
    font-size: 12px;
    height: 30px;
}

.emp-date-range-controls .input-group-sm .form-control {
    border-color: #e5e6e7;
}

/* Info and warning messages */
.emp-selection-info {
    font-size: 13px;
    margin-bottom: 0;
    border-left: 3px solid #1ab394;
}

.emp-selection-info i {
    margin-right: 5px;
}

.emp-warning-info {
    font-size: 13px;
    margin-bottom: 0;
    border-left: 3px solid #f8ac59;
}

.emp-warning-info i {
    margin-right: 5px;
}

/* Reset button styling */
.emp-reset-zoom {
    margin-left: 10px;
}

.emp-reset-zoom i {
    margin-right: 3px;
}

/* Quick range button hover effects */
.emp-quick-range:hover {
    background-color: #1ab394;
    color: #fff;
    border-color: #1ab394;
}

.emp-quick-range:active,
.emp-quick-range:focus {
    background-color: #18a689;
    color: #fff;
    border-color: #18a689;
}

/* Datepicker integration */
.emp-date-range-controls .datepicker {
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .emp-date-range-controls .col-md-8,
    .emp-date-range-controls .col-md-4 {
        width: 100%;
        margin-bottom: 10px;
    }

    .emp-date-range-controls .btn-group {
        display: block;
        margin-bottom: 10px;
    }

    .emp-date-range-controls .btn-group .btn {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .emp-reset-zoom {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Integration with INSPINIA theme */
.ibox-content .emp-date-range-controls {
    background: #ffffff;
    border: 1px solid #e7eaec;
}

/* Animation for dial updates */
@keyframes dialPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.emp-dial-updating {
    animation: dialPulse 0.5s ease-in-out;
}

/* Loading state */
.emp-date-range-controls.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility improvements */
.emp-quick-range:focus,
.emp-reset-zoom:focus,
.emp-date-from:focus,
.emp-date-to:focus {
    outline: 2px solid #1ab394;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .emp-date-range-controls {
        display: none;
    }
}
