/* Profile Page Custom Styles */

/* Profile Card Gradient Header */
.profile-header-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

/* Profile Tabs Styles */
#profileTabs .nav-link {
    color: #6c757d !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

#profileTabs .nav-link:hover {
    color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.05) !important;
}

#profileTabs .nav-link.active {
    color: #7c3aed !important;
    background-color: #ffffff !important;
    border-bottom: 3px solid #7c3aed !important;
}

#profileTabs .nav-link:focus,
#profileTabs .nav-link:focus-visible,
#profileTabs .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

#profileTabs .nav-link.active:focus,
#profileTabs .nav-link.active:focus-visible {
    border-bottom: 3px solid #7c3aed !important;
}

#profileTabs .nav-link i {
    transition: transform 0.3s ease;
}

#profileTabs .nav-link:hover i {
    transform: scale(1.1);
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

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

/* Profile Avatar */
.profile-avatar {
    width: 100px;
    height: 100px;
    background: white !important;
    color: #7c3aed !important;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Profile Info Cards */
.profile-info-card {
    background-color: #f8f9ff !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    background-color: #f0f4ff !important;
    border-color: #7c3aed !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* Enrollment Cards */
.enrollment-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.enrollment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

/* Course Title */
.course-title {
    color: #7c3aed !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title:hover {
    color: #6d28d9 !important;
    text-decoration: none;
}

/* Badge Styles */
.badge-purple {
    background-color: #7c3aed !important;
    color: white !important;
}

.badge-purple:hover {
    background-color: #6d28d9 !important;
}

/* Refund Button */
.refund-btn {
    transition: all 0.3s ease;
}

.refund-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Form Controls */
.form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

/* Button Styles */
.btn-purple,
a.btn-purple,
button.btn-purple {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-purple:hover,
a.btn-purple:hover,
button.btn-purple:hover {
    background-color: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-purple:active,
.btn-purple:focus,
.btn-purple.active,
.btn-purple:focus-visible,
a.btn-purple:active,
a.btn-purple:focus,
a.btn-purple.active,
a.btn-purple:focus-visible,
button.btn-purple:active,
button.btn-purple:focus,
button.btn-purple.active,
button.btn-purple:focus-visible {
    background-color: #5b21b6 !important;
    border-color: #5b21b6 !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25) !important;
    transform: translateY(0);
}

/* Fix Browse Courses and inline-styled purple buttons */
a.btn.rounded-pill[style*="7c3aed"],
a.btn[style*="7c3aed"] {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: white !important;
}

a.btn.rounded-pill[style*="7c3aed"]:hover,
a.btn[style*="7c3aed"]:hover {
    background-color: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: white !important;
}

a.btn.rounded-pill[style*="7c3aed"]:active,
a.btn.rounded-pill[style*="7c3aed"]:focus,
a.btn.rounded-pill[style*="7c3aed"]:focus-visible,
a.btn[style*="7c3aed"]:active,
a.btn[style*="7c3aed"]:focus,
a.btn[style*="7c3aed"]:focus-visible {
    background-color: #5b21b6 !important;
    border-color: #5b21b6 !important;
    color: white !important;
}

/* Fix Cancel and secondary buttons */
.btn-outline-secondary,
a.btn-outline-secondary,
button.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover,
a.btn-outline-secondary:hover,
button.btn-outline-secondary:hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:active,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible,
a.btn-outline-secondary:active,
a.btn-outline-secondary:focus,
a.btn-outline-secondary:focus-visible,
button.btn-outline-secondary:active,
button.btn-outline-secondary:focus,
button.btn-outline-secondary:focus-visible {
    color: #fff !important;
    background-color: #5c636a !important;
    border-color: #565e64 !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25) !important;
}

/* Fix Success buttons (Set/Update Password) */
.btn-success,
button.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

.btn-success:hover,
button.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

.btn-success:active,
.btn-success:focus,
.btn-success:focus-visible,
button.btn-success:active,
button.btn-success:focus,
button.btn-success:focus-visible {
    background-color: #047857 !important;
    border-color: #047857 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
}

/* Empty State */
.empty-state-icon {
    color: #7c3aed;
    opacity: 0.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .enrollment-card {
        margin-bottom: 1rem;
    }
}

/* Animation for form toggle */
.refund-form {
    animation: slideDown 0.3s ease-out;
}

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

/* Custom scrollbar for refund forms */
.refund-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Icon colors */
.fa-user,
.fa-envelope,
.fa-clock,
.fa-map-marker-alt,
.fa-calendar,
.fa-credit-card,
.fa-graduation-cap
.fa-phone,
.fa-calendar,
.fa-layer-group,
.fa-university,
.fa-book,
.fa-calendar-alt,
.fa-calendar-check,
.fa-globe,
.fa-city,
.fa-home,
.fa-building,
.fa-map,
.fa-mail-bulk,
.fa-phone,
.fa-city {
    color: #7c3aed !important;
}

/* Button icons - keep their button colors */
.btn-purple .fa-edit,
.btn-purple .fa-save,
a.btn[style*="7c3aed"] .fa-search,
a.btn[style*="7c3aed"] i {
    color: #ffffff !important;
}

.btn-outline-secondary .fa-times,
a.btn-outline-secondary i {
    color: #6c757d !important;
}

.btn-outline-secondary:hover .fa-times,
a.btn-outline-secondary:hover i {
    color: #ffffff !important;
}

.btn-success .fa-check,
.btn-success i {
    color: #ffffff !important;
}

/* Card shadows */
.card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
