/* =============================================================
   MY PROFILE & USER PROFILE SHARED STYLES
   ============================================================= */

.my-profile-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.my-profile-header {
    background: var(--primary-color) !important;
    border-top: 3px solid var(--secondary-color) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 18px !important;
    color: #fff;
}

.my-profile-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    flex-shrink: 0;
}

.profile-photo-container {
    position: relative;
    display: inline-block;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* User Photo Hover Overlay & Styling */
.photo-overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 1.2rem;
}

label[for="formPhotoFile"]:hover .photo-overlay {
    opacity: 1 !important;
}

/* Responsive adjustment for compact viewport heights */
@media (max-height: 850px) {
    #profileUserPhoto {
        width: 105px !important;
        height: 105px !important;
    }
    .profile-photo-container {
        margin-bottom: 8px !important;
    }
    .my-profile-card .coderstation-floating-textbox.mb-3 {
        margin-bottom: 0.45rem !important;
    }
    .my-profile-card .p-2.border.rounded.mb-2 {
        padding: 4px 8px !important;
        margin-bottom: 4px !important;
    }
    .my-profile-card hr.mt-1.mb-3 {
        margin-top: 2px !important;
        margin-bottom: 6px !important;
    }
    .my-profile-card h6.mb-3 {
        margin-bottom: 6px !important;
    }
}
