/* ==========================================
   PROFILE SYSTEM STYLES
   ========================================== */

/* Profile Icon Button in Header */
.profile-icon-btn {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.4rem 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 0.75rem;
    -webkit-text-fill-color: #a5b4fc;
}

.profile-icon-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.profile-icon-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #e0e7ff;
    -webkit-text-fill-color: #e0e7ff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Profile Modal Overlay */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal-overlay.active {
    opacity: 1;
}

/* Profile Modal */
.profile-modal {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.profile-modal-overlay.active .profile-modal {
    transform: translateY(0) scale(1);
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.profile-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.profile-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Profile Form */
.profile-form .form-group {
    margin-bottom: 1.25rem;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Subject Tags */
.profile-subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.2s ease-out;
}

.tag-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.15rem;
    transition: color 0.2s;
}

.tag-remove:hover {
    color: #f87171;
}

/* Add Subject Row */
.profile-add-subject-row {
    display: flex;
    gap: 0.5rem;
}

.profile-add-subject-row input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.profile-add-subject-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn-add-subject {
    background: var(--accent-primary);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn-add-subject:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Profile Save Button */
.profile-save-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none;
    font-size: 1rem !important;
    padding: 0.85rem !important;
    letter-spacing: 0.5px;
}

.profile-save-btn:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35) !important;
}

/* Profile Modal Scrollbar */
.profile-modal::-webkit-scrollbar {
    width: 6px;
}

.profile-modal::-webkit-scrollbar-track {
    background: transparent;
}

.profile-modal::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

/* Mobile Responsive for Profile */
@media (max-width: 600px) {
    .profile-modal {
        padding: 1.5rem;
        max-height: 85vh;
    }

    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .profile-modal-header h2 {
        font-size: 1.2rem;
    }

    .profile-icon-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

}


