/* Profile Page Styles */

.profile-avatar {
    text-align: center;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-light, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #4f46e5);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color, #4f46e5);
}

.profile-card .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.enrolled-topics-list .topic-item {
    margin-bottom: 0.5rem;
}

.enrolled-topics-list .topic-item .card {
    transition: all 0.2s ease;
    border: 1px solid var(--neutral-200, #e5e7eb);
}

.enrolled-topics-list .topic-item .card:hover {
    background-color: var(--primary-light, #e0e7ff);
    border-color: var(--primary-color, #4f46e5);
    transform: translateX(5px);
}

.enrolled-topics-list .topic-item a {
    text-decoration: none;
    color: inherit;
}

.card-sm .card-body {
    padding: 0.5rem 0.75rem;
}

.statistics-badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.quick-actions .btn {
    transition: all 0.2s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-1px);
}

.account-management-card .card {
    height: 100%;
    transition: all 0.2s ease;
}

.account-management-card .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-field-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-100, #f3f4f6);
}

.profile-field-row:last-child {
    border-bottom: none;
}

.profile-field-label {
    font-weight: 600;
    color: var(--neutral-700, #374151);
}

.profile-field-value {
    color: var(--neutral-600, #4b5563);
}

.profile-badge-list .badge {
    margin: 0.125rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .avatar-circle,
    .avatar-image {
        width: 80px;
        height: 80px;
    }
    
    .avatar-circle i {
        font-size: 2rem !important;
    }
    
    .profile-field-row {
        flex-direction: column;
        text-align: left;
    }
    
    .profile-field-label {
        margin-bottom: 0.25rem;
    }
    
    .enrolled-topics-list .topic-item .card:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        margin-bottom: 1rem;
    }
    
    .statistics-badge {
        font-size: 0.8rem;
    }
    
    .quick-actions .btn {
        font-size: 0.875rem;
    }
}

/* Password Change Styles */
.password-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.form-text {
    font-size: 0.875em;
    color: #6c757d;
}

/* Password validation styles */
.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
}