/* Advanced Interview Calendar Styles */
.interview-calendar-advanced-container {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.interview-calendar-advanced-container h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.interview-calendar-advanced-container .text-muted {
    color: #6c757d !important;
    font-size: 0.95rem;
}

/* Button styles moved to unified-buttons.css */

/* Statistics Cards */
.row .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
}

.row .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1rem;
}

.fw-bold {
    font-size: 1.8rem;
    font-weight: 700;
}

.small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Filter Panel Styles */
.card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0 !important;
}

.card .card-header h5 {
    color: #495057;
    margin: 0;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* DevExpress Component Overrides */
.dx-tagbox {
    border-radius: 6px !important;
}

.dx-textbox {
    border-radius: 6px !important;
}

/* Scheduler Styles */
.interview-scheduler {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.interview-scheduler .dx-scheduler-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.interview-scheduler .dx-scheduler-header-panel {
    background-color: rgba(255, 255, 255, 0.1);
}

.interview-scheduler .dx-scheduler-date-table-cell {
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.interview-scheduler .dx-scheduler-date-table-cell:hover {
    background-color: #f8f9fa;
}

/* Appointment Styles */
.interview-scheduler .dx-scheduler-appointment {
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interview-scheduler .dx-scheduler-appointment:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Status-based appointment colors */
.interview-scheduler .dx-scheduler-appointment.status-scheduled {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.interview-scheduler .dx-scheduler-appointment.status-confirmed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.interview-scheduler .dx-scheduler-appointment.status-completed {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.interview-scheduler .dx-scheduler-appointment.status-cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.interview-scheduler .dx-scheduler-appointment.status-rescheduled {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* Priority indicators */
.interview-scheduler .dx-scheduler-appointment.priority-urgent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #dc3545;
    border-radius: 6px 0 0 6px;
}

.interview-scheduler .dx-scheduler-appointment.priority-high::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #fd7e14;
    border-radius: 6px 0 0 6px;
}

/* Resource Headers */
.interview-scheduler .dx-scheduler-header-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.interview-scheduler .dx-scheduler-header-row .dx-scheduler-header-panel-cell {
    border-right: 1px solid #dee2e6;
    font-weight: 500;
    color: #495057;
}

/* Timeline View */
.interview-scheduler .dx-scheduler-timeline-view .dx-scheduler-date-table-row {
    border-bottom: 1px solid #e9ecef;
}

.interview-scheduler .dx-scheduler-timeline-view .dx-scheduler-date-table-cell {
    border-right: 1px solid #f1f3f4;
}

/* Conflict Highlights */
.interview-scheduler .dx-scheduler-appointment.conflict-highlighted {
    border: 2px solid #dc3545;
    animation: pulse-red 2s infinite;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes feedbackPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Toast Notifications */
.toast-container .toast {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.toast-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-body {
    padding: 1rem;
    color: #495057;
}

/* Loading States */
.spinner-border {
    animation: spinner-border 0.8s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

/* Custom Scrollbars */
.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .interview-calendar-advanced-container {
        padding: 10px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .row .col-md-2 {
        margin-bottom: 10px;
    }
    
    .fw-bold {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .interview-scheduler {
        height: 400px !important;
    }
    
    .row .col-md-3,
    .row .col-md-2 {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .interview-calendar-advanced-container {
        background-color: #1a1d23;
        color: #e9ecef;
    }
    
    .card {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .card-header {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
        border-bottom-color: #4a5568;
    }
    
    .form-control, .form-select {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e9ecef;
    }
    
    .form-control:focus, .form-select:focus {
        background-color: #2d3748;
        border-color: #667eea;
        color: #e9ecef;
    }
}

/* Animation Enhancements */
.card, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .interview-calendar-advanced-container {
        background-color: white;
        padding: 0;
    }
    
    .btn-group,
    .toast-container {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        break-inside: avoid;
    }
}
