/* Student Details Modal Styling */

.student-details-modal {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.student-details-modal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 1.5rem;
}

.student-details-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.student-details-modal .btn-close-white {
    filter: invert(1);
    opacity: 0.8;
}

.student-details-modal .btn-close-white:hover {
    opacity: 1;
}

/* Student Profile Header */
.student-profile-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.student-avatar-large .avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.student-avatar-large .avatar-circle i {
    font-size: 2.5rem;
    color: white;
}

.student-name-large {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.student-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.student-contact-info p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.student-contact-info i {
    width: 20px;
    text-align: center;
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Course Information Cards */
.info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* Employment Details Grid */
.employment-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.employment-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.employment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.employment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.employment-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.employment-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employment-icon i {
    font-size: 1.5rem;
}

.employment-info {
    flex: 1;
}

.employment-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.employment-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

/* Success Message */
.employment-success-message .alert {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 1.5rem;
}

.success-icon i {
    font-size: 2rem;
    color: #28a745;
}

.alert-heading {
    color: #155724;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Modal Footer */
.student-details-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem;
    border-radius: 0 0 15px 15px;
}

.student-details-modal .modal-footer .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.student-details-modal .modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .student-details-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .student-name-large {
        font-size: 1.5rem;
    }
    
    .employment-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .employment-card {
        padding: 1rem;
    }
    
    .student-contact-info .row {
        margin-bottom: 0;
    }
    
    .student-contact-info .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

/* Animation for modal appearance */
.student-details-modal.show .modal-dialog {
    animation: slideInUp 0.3s ease-out;
}

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

/* Eye icon styling for disabled state */
.btn-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline-secondary:disabled .fas {
    color: #6c757d !important;
}

/* Enhanced hover effects */
.employment-card:hover .employment-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.info-card:hover .info-label {
    color: #007bff;
    transition: color 0.3s ease;
}

/* Loading state for modal */
.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6c757d;
}

.modal-loading .spinner-border {
    margin-right: 1rem;
}
