/* اضافه کردن به فایل CSS */

/* استایل برای اطلاعات مصاحبه‌های روز */
#date-interviews-info {
    border-left: 4px solid #0d6efd;
    background-color: #e7f3ff;
    border-color: #b8daff;
}

#date-interviews-info .card-sm {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

#date-interviews-info .card-sm:hover {
    border-color: #0d6efd;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* استایل برای هشدار تداخل */
#time-conflict-warning {
    border-left: 4px solid #dc3545;
    animation: shake 0.5s ease-in-out;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* استایل برای ساعات غیرفعال در timepicker */
.ui-timepicker-list li.ui-timepicker-disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
}

.ui-timepicker-list li.ui-timepicker-disabled:hover {
    background-color: #f8f9fa !important;
}

/* استایل برای loading spinner در ضبط صوت */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل برای نمایشگر ضبط */
.recording-indicator {
    width: 12px;
    height: 12px;
    background-color: #dc3545;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* بهبود نمایش کارت‌های مصاحبه */
.card-sm .card-body {
    font-size: 0.875rem;
}

.card-sm .badge {
    font-size: 0.75rem;
}

/* استایل برای پیام‌های سیستم */
.alert .fa {
    margin-left: 8px;
}

/* بهبود نمایش timepicker */
.ui-timepicker-wrapper {
    z-index: 9999 !important;
}

/* استایل برای فیلدهای تاریخ و ساعت */
.datetime-fields {
    background-color: #f0f0f0;
    padding: 1rem;
    margin: 1rem 0;
}

.pulse-shadow {
  box-shadow: 0 0 0 rgba(25, 77, 116, 0.7);
  animation: pulse-shadow 1.5s infinite;
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 77, 116, 0.5);
  }
  70% {
    box-shadow: 0 0 10px 10px rgba(25, 77, 116, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(25, 77, 116, 0);
  }
}


/* استایل responsive برای موبایل */
@media (max-width: 768px) {
    #date-interviews-info .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .card-sm .card-body {
        padding: 0.75rem;
    }
    
    .datetime-fields .col-md-2,
    .datetime-fields .col-md-3 {
        margin-bottom: 1rem;
    }
}

.datetime-loading-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    z-index: 10;
    width: calc(100% - 2%);
    height: calc(100% - 18%);
}

.datetime-loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
}

.datetime-fields {
    position: relative;
}

.datetime-fields.loading {
    pointer-events: none;
    opacity: 0.7;
}

.bg-light-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#discount_calculation {
    position: absolute;
    top: -110px;
    right: -100px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    width: 230px;
    height: 120px;
    padding-top: 25px !important;
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
    background-color: rgb(140, 193, 222);
}

#discount_calculation:after {
    content: '';
    position: absolute;
    top: 93%;
    left: 20px;
    width: 15px;
    height: 15px;
    transform: rotate(45deg);
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
    background-color: rgb(140, 193, 222);
    z-index: 1;
}

.close-discount-calculation {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}

.close-discount-calculation:hover {
    color: #000;
}

.timepicker-input {
    max-width: 120px;
}