.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.application-modal {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .application-modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 18px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #DC143C;
    color: white;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 8px 0;
    padding-right: 40px;
}

.modal-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.modal-body {
    padding: 32px;
}

.auth-prompt {
    text-align: center;
    padding: 40px 20px;
}

.auth-prompt-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #DC143C 0%, #FF4757 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.auth-prompt-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 12px 0;
}

.auth-prompt-text {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #DC143C 0%, #FF4757 100%);
    color: white;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
}

.auth-btn-secondary {
    background: white;
    border: 2px solid #E5E7EB;
    color: #374151;
}

.auth-btn-secondary:hover {
    border-color: #DC143C;
    color: #DC143C;
}

.application-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #F9FAFB;
}

.form-input:focus {
    outline: none;
    border-color: #DC143C;
    background: white;
}

.form-input:disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

.info-box {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box-icon {
    flex-shrink: 0;
    color: #F59E0B;
    font-size: 20px;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
    margin: 0 0 4px 0;
}

.info-box-text {
    font-size: 13px;
    color: #78350F;
    margin: 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 24px 32px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #DC143C 0%, #FF4757 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    border: 2px solid #E5E7EB;
    color: #374151;
}

.btn-secondary:hover {
    border-color: #DC143C;
    color: #DC143C;
}

.modal-overlay .apply-btn,
.modal-overlay .application-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #DC143C 0%, #FF4757 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modal-overlay .apply-btn:hover,
.modal-overlay .application-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
}

.modal-overlay .apply-btn.applied,
.modal-overlay .application-btn.applied {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    cursor: default;
}

.modal-overlay .apply-btn.applied:hover,
.modal-overlay .application-btn.applied:hover {
    transform: none;
}

@media (max-width: 768px) {
    .application-modal {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .modal-header {
        padding: 24px 24px 20px;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        padding: 20px 24px 24px;
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
    }
    
    .application-modal {
        border-radius: 16px 16px 0 0;
    }
}

.bulk-exams-list {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.bulk-exam-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.bulk-exam-item:last-child {
    margin-bottom: 0;
}

.bulk-exam-item i {
    color: #10B981;
    font-size: 1rem;
    flex-shrink: 0;
}

