/* ======================= Profile Page CSS Start ============================= */

/* Profile Section */
.profile-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* Avatar Upload */
.avatar-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e2e8f0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-preview img#avatar-image {
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.avatar-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.avatar-upload-btn i {
    font-size: 18px;
}

/* Profile Card */
.profile-card {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

.profile-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.profile-card hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 24px 0;
}

.profile-card h6 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

/* Form Labels */
.profile-section .form-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.profile-section .form-label span.text-danger {
    color: #ef4444;
    margin-right: 4px;
}

/* Form Inputs */
.profile-section .common-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.profile-section .common-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

.profile-section .common-input::placeholder {
    color: #94a3b8;
}

.profile-section textarea.common-input {
    resize: vertical;
    min-height: 100px;
}

/* Toggle Password */
.toggle-password {
    color: #64748b;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #3b82f6;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert i {
    margin-left: 8px;
    font-size: 18px;
}

/* Submit Button */
.profile-card .btn-main {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-card .btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.profile-card .btn-main i {
    font-size: 18px;
}

/* Error Messages */
.profile-section .text-danger {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-section {
        padding: 60px 0;
    }
    
    .profile-card {
        padding: 32px 20px;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 40px 0;
    }
    
    .profile-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .profile-card h6 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .profile-section .row.gy-3 > div {
        margin-bottom: 16px;
    }
    
    .profile-section .common-input {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ======================= Profile Page CSS End ============================= */

