html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Custom Styles for the Landing Page */
.hero-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
    flex-shrink: 0;
}


.feature-icon i {
    font-size: 2rem;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #6c757d; /* Bootstrap secondary color */
    color: #fff;
}

/* SignalR Toast Notifications */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.toast-body {
    padding: 0.75rem;
}

/* Dashboard Card Animations */
.request-card {
    transition: all 0.3s ease;
}

.request-card.border-primary {
    border-width: 2px !important;
    animation: pulse-border 1s ease-in-out;
}

.request-card.border-success {
    border-width: 2px !important;
    animation: pulse-border 1s ease-in-out;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
}

/* Toast notification close button styling */
.toast .btn-close {
    background-color: transparent;
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* ============================================
   WIZARD PROGRESS STYLES
   ============================================ */

.wizard-progress {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--en-muted);
    border-radius: var(--en-radius);
}

.wizard-progress .d-flex {
    position: relative;
    z-index: 1;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 80px;
}

.wizard-step-line {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: var(--en-border);
    z-index: -1;
}

.wizard-step:not(:last-child) .wizard-step-line {
    right: -50%;
    width: 100%;
}

.wizard-step:not(:last-child) .wizard-step-line {
    left: 50%;
}

.wizard-step:last-child .wizard-step-line {
    display: none;
}

.wizard-step.completed .wizard-step-line {
    background-color: var(--en-primary);
}

.wizard-step.active .wizard-step-line {
    background: linear-gradient(to right, var(--en-primary) 50%, var(--en-border) 50%);
}

.wizard-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--en-background);
    border: 3px solid var(--en-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--en-muted-foreground);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-number {
    border-color: var(--en-primary);
    background-color: var(--en-primary);
    color: var(--en-primary-foreground);
    box-shadow: 0 0 0 4px rgb(var(--en-primary) / 0.15);
}

.wizard-step.completed .wizard-step-number {
    border-color: var(--en-primary);
    background-color: var(--en-primary);
    color: var(--en-primary-foreground);
}

.wizard-step.locked .wizard-step-number {
    border-color: var(--en-border);
    background-color: var(--en-muted);
    color: var(--en-muted-foreground);
}

.wizard-step-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--en-muted-foreground);
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-title {
    color: var(--en-foreground);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-title {
    color: var(--en-primary);
    font-weight: 600;
}

.wizard-step.locked .wizard-step-title {
    color: var(--en-muted-foreground);
    opacity: 0.6;
}

.wizard-content {
    padding: 0 0.5rem;
}

.wizard-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--en-border);
}

/* Responsive adjustments for wizard */
@media (max-width: 575.98px) {
    .wizard-progress {
        padding: 1rem;
    }

    .wizard-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .wizard-step-title {
        font-size: 0.75rem;
    }

    .wizard-step-line {
        top: 20px;
    }

    .wizard-navigation .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}
/* Video Conference Banner */
#videoConferenceBanner {
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom: 3px solid #1e7e34 !important;
}

#videoConferenceBanner .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#videoConferenceBanner .btn-close:hover {
    opacity: 1;
}

#videoConferenceBanner .btn-light {
    background-color: white;
    color: #28a745;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

#videoConferenceBanner .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#videoConferenceBanner i.bi-camera-video-fill {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Video Conference Modal Animations */
#videoConferenceModal .modal-dialog {
    animation: modalSlideIn 0.5s ease-out;
}

#videoConferenceModal.show .modal-dialog {
    animation: modalBounce 0.6s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalBounce {
    0% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Pulse animation for video icon */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* Video conference modal backdrop with extra emphasis */
#videoConferenceModal.show ~ .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for modal */
@media (max-width: 576px) {
    #videoConferenceModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #videoConferenceModal .modal-header {
        padding: 2rem 1rem !important;
    }
    
    #videoConferenceModal .modal-body {
        padding: 2rem 1rem !important;
    }
    
    #videoConferenceModal .modal-title {
        font-size: 1.5rem !important;
    }
}
