.custom-profile-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border: 2px dashed saddlebrown;
    border-radius: 5px;
    padding: 30px;
    box-sizing: border-box;
}

.profile-section {
    margin-bottom: 25px;
}

.profile-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: saddlebrown;
}

.profile-section input[type="text"],
.profile-section input[type="email"],
.profile-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.profile-section input:focus,
.profile-section textarea:focus {
    background-color: #fff8dc;
    outline: none;
    border-color: saddlebrown;
}

/* Avatar Styling */
.avatar-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.current-avatar {
    border-radius: 50%;
    border: 3px solid black;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.avatar-status {
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 10px;
}

.file-input-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
}

/* Force the pointy finger cursor when hovering over the upload label */
.file-input-label {
    cursor: pointer;
}

.file-name {
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
}

/* --- Member Navigation Links Styling --- */
.profile-nav-links {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-nav-btn {
    display: inline-block;
    text-decoration: none;
    color: saddlebrown;
    border: 2px solid saddlebrown;
    padding: 8px 15px;
    border-radius: 4px;
    background: white;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.2s ease;
}

.profile-nav-btn:hover {
    background-color: #fff8dc; /* Matches your theme's input focus color */
    color: saddlebrown;
}

.profile-submit-wrapper {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* =========================================
   Profile Tabs & Dividers
   ========================================= */
.lmr-profile-divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0 20px 0;
}

.lmr-profile-tabs {
    display: flex;
    gap: 4px; /* Adds a small space between tabs so the corners are visible */
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

.lmr-tab-link {
    background-color: #fff2b6; /* New cornsilk background color */
    border: none;
    border-radius: 10px 10px 0 0; /* Rounded top left and top right corners */
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Pulls the border down over the container's border */
    transition: all 0.3s ease;
    flex: 1; /* Makes tabs stretch evenly on mobile */
    text-align: center;
}

.lmr-tab-link:hover {
    background-color: #f5deb3 !important; /* Tan color (adjust hex if your theme's specific tan differs) */
    color: #8b4513; 
}

.lmr-tab-link.active {
    color: #8b4513;
    border-bottom-color: #8b4513;
}

.lmr-tab-content {
    display: none;
    animation: lmrFadeIn 0.3s ease-in-out;
}

.lmr-tab-content.active {
    display: block;
}

@keyframes lmrFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Profile Form Inputs Uniformity
   ========================================= */
#custom-profile-form .profile-section input[type="text"],
#custom-profile-form .profile-section input[type="email"],
#custom-profile-form .profile-section input[type="url"],
#custom-profile-form .profile-section textarea {
    background-color: #fff8dc; /* Yellow from the main tabs */
    color: #000000; /* Starks black text for user input */
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

/* Distinct placeholder styling for better contrast */
#custom-profile-form .profile-section input::placeholder,
#custom-profile-form .profile-section textarea::placeholder {
    color: #888888; /* Lighter grey for placeholder text */
    opacity: 1; /* Ensures Firefox doesn't fade the placeholder */
}

/* =========================================
   Avatar File Upload Styling (Stacked & Centered)
   ========================================= */

/* 1. Hide the stubborn native file input completely */
input[type="file"]#avatar-upload {
    display: none !important;
}

/* 2. Style the outer wrapper to shrink-wrap and center */
.file-input-wrapper {
    background-color: #fff8dc !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 15px 25px !important;
    width: fit-content !important; /* Shrinks the yellow box to just fit the content */
    margin: 15px auto !important; /* Centers the yellow box within the form */
    display: flex !important;
    flex-direction: column !important; /* Stacks the button on top of the text */
    align-items: center !important; /* Centers the button and text horizontally */
    gap: 8px !important; /* Creates a small gap between the button and text */
}

/* 3. Style the label to act as your #ff6347 custom button */
.file-input-wrapper .file-input-label {
    cursor: pointer !important;
    background-color: #ff6347 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
    margin: 0 !important; 
    display: inline-block !important;
    text-align: center !important;
}

.file-input-wrapper .file-input-label:hover {
    background-color: #8b4513 !important;
}

/* 4. Style the "No file chosen" text */
.file-input-wrapper .file-name {
    color: #000000 !important;
    font-size: 14px !important;
    text-align: center !important;
}