/* =================================
   PROFILE PAGE STYLES
   ================================= */

/* Profile Hero Section */
.profile-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 3rem 0;
    color: white;
}

.profile-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.profile-info h1.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.profile-info .profile-email {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.profile-role-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.profile-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.profile-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Profile Content */
.profile-content {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 70vh;
}

/* Profile Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Profile Tabs */
.profile-tabs {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-tab-list {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.profile-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.profile-tab.active {
    background: white;
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.profile-tab-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.profile-tab-content {
    display: none;
    padding: 2rem;
}

.profile-tab-content.active {
    display: block;
}

/* Profile Cards */
.profile-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.profile-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.profile-card-description {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Profile Forms */
.profile-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label-icon {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    accent-color: #3b82f6;
}

.form-check-label {
    flex: 1;
    cursor: pointer;
}

.form-check-title {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-check-description {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Responsiveness for Profile */
@media (max-width: 768px) {
    .profile-hero {
        padding: 2rem 0;
    }
    
    .profile-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .profile-stat {
        padding: 1rem 0.75rem;
    }
    
    .profile-stat-number {
        font-size: 1.5rem;
    }
    
    .profile-tab-list {
        flex-direction: column;
    }
    
    .profile-tab {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        border-right: none;
    }
    
    .profile-tab.active {
        border-bottom: 1px solid #e5e7eb;
        border-left: 3px solid #3b82f6;
    }
    
    .profile-tab-content,
    .profile-form {
        padding: 1.5rem;
    }
    
    .profile-card-header {
        padding: 1rem 1.5rem;
    }
}

/* Profile Image Upload Styles */
.profile-image-upload-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.profile-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    position: relative;
    flex-shrink: 0;
}

.profile-image-current {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    height: 100%;
    padding: 1rem;
}

.profile-image-placeholder-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.profile-image-placeholder-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-image-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-image-input {
    display: none;
}

.profile-image-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-width: 120px;
    justify-content: center;
}

.profile-image-btn.btn-secondary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.profile-image-btn.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.profile-image-btn.btn-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.profile-image-btn.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Profile Image Loading States */
.profile-image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    padding: 1rem;
}

.profile-image-loading-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.profile-image-loading-text {
    font-size: 0.75rem;
    font-weight: 500;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Mobile Responsive for Profile Image Upload */
@media (max-width: 768px) {
    .profile-image-upload-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-image-preview {
        width: 100px;
        height: 100px;
    }
    
    .profile-image-upload-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .profile-image-btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
} 