/* Modern Profile Styles - Blue & Teal Theme */

/* Profile Container */
.profile-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Profile Header Banner */
.profile-header-banner {
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    height: 200px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.profile-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Profile Card Container */
.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Profile Sidebar */
.profile-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    padding-top: 120px;
}

.profile-sidebar-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
}

.profile-sidebar-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

/* Profile Avatar */
.profile-avatar-wrapper {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Profile Avatar Edit Mode */
.profile-avatar-edit {
    position: relative;
    display: inline-block;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 132, 199, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-avatar-edit:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay i {
    font-size: 1.5rem;
    color: white;
}

/* Profile Info */
.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

.profile-username {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* Role Badges */
.profile-roles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.role-badge.keeper {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 2px solid rgba(2, 132, 199, 0.2);
}

.role-badge.head {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.role-badge.user {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 2px solid rgba(20, 184, 166, 0.2);
}

.role-badge:hover {
    transform: scale(1.05);
}

/* Profile Actions */
.profile-action-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    color: white;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(2, 132, 199, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-header {
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.section-header i {
    font-size: 1.5rem;
}

.section-body {
    padding: 1.5rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
}

.info-label i {
    color: #0284c7;
    font-size: 1rem;
}

.info-value {
    color: #64748b;
    font-size: 1rem;
    padding-left: 1.5rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #0284c7 0%, #14b8a6 100%);
    border-image-slice: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    font-size: 1.5rem;
    color: #0284c7;
}

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

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
}

.form-label-modern i {
    color: #0284c7;
    font-size: 1rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control-modern:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.form-control-modern:hover {
    border-color: #cbd5e1;
}

textarea.form-control-modern {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.current-image-preview {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    display: inline-block;
}

.current-image-preview img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.btn-primary-modern {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    text-decoration: none;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-secondary-modern {
    padding: 0.875rem 2rem;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-modern:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Error Messages */
.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.field-error i {
    font-size: 0.875rem;
}

/* Success Messages */
.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success-modern {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.alert-error-modern {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

/* Activity Timeline (Optional Enhancement) */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e2e8f0;
}

.timeline-icon {
    position: absolute;
    left: -2.625rem;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    box-shadow: 0 0 0 4px white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-wrapper {
        padding: 1.5rem 1rem;
    }

    .profile-sidebar {
        margin-bottom: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header-banner {
        height: 150px;
    }

    .profile-avatar,
    .profile-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .profile-avatar-placeholder {
        font-size: 2rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 1rem;
    }

    .section-body {
        padding: 1rem;
    }

    .profile-sidebar {
        padding-top: 100px;
    }

    .profile-avatar-wrapper {
        top: 50px;
    }

    .profile-avatar,
    .profile-avatar-placeholder {
        width: 70px;
        height: 70px;
    }

    .profile-avatar-placeholder {
        font-size: 1.75rem;
    }
}
