/* ==========================================================================
   1. ULTIMATE MEMBER CORE STYLING
   ========================================================================== */
.um {
    font-family: inherit;
}

/* Fix input focus states */
.um input:focus,
.um textarea:focus {
    border-color: #168881;
    box-shadow: 0 0 0 1px #168881;
}

/* Prevent global text color override from breaking white text on buttons */
.um:not(.um-button),
.um label,
.um p,
.um div:not(.um-button) {
    color: #000000;
}

/* Base Ultimate Member Buttons */
.um .um-button,
.um input[type=submit],
.um input[type=button],
.um a.um-button {
    background-color: #168881 !important;
    border-color: #168881 !important;
    color: #ffffff !important;
}

/* Fix text and link styling inside UM pages to remove pink colors */
.um-account a,
.um-profile a,
.um-member-directory a,
.um a {
    color: #168881 !important;
    text-decoration: none !important;
}

/* Underline link effect when hovered, active, or clicked */
.um-account a:hover, .um-account a:active, .um-account a:focus,
.um-profile a:hover, .um-profile a:active, .um-profile-a:focus,
.um-member-directory a:hover, .um-member-directory a:active, .um-member-directory a:focus,
.um a:hover, .um a:active, .um a:focus {
    text-decoration: underline !important;
    color: #168881 !important;
}

/* ==========================================================================
   2. ULTIMATE MEMBER PROFILE PHOTO & LAYOUT FIXES
   ========================================================================== */
/* Center profile header elements */
.um-profile {
    text-align: center;
}

/* Force parent container, links, and image elements into a perfect circle */
.um-header-b,
.um-profile-photo,
.um-profile-photo-img, 
.um-profile-photo a,
.um-profile-photo img {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px !important;
    min-height: 130px !important;
    max-width: 130px !important;
    max-height: 130px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    clip-path: circle(50% at 50% 50%) !important;
    margin: 0 auto !important;
    float: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Ensure the image behaves properly inside the circular container */
.um-profile-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Remove theme background arcs or shadow shapes around the picture link */
.um-profile-photo a:before,
.um-profile-photo a:after {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Hover Camera Icon Overlay & Edit Button Alignment Fixes */
.um-profile-photo .um-profile-photo-overlay,
.um-profile-photo .um-profile-photo-edit {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border-radius: 50% !important;
    opacity: 0;
    transition: 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Reveal camera overlay on hover */
.um-profile-photo:hover .um-profile-photo-overlay,
.um-profile-photo:hover .um-profile-photo-edit {
    opacity: 1;
}

/* Center camera icon directly inside circular wrapper link */
.um-profile-photo-edit a i {
    font-size: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Completely hide the checkmark icon on the right side */
.um-profile-edit-sign,
.um-icon-android-done,
.um-profile-nav-item .fa-check,
.um-faicon-check,
.um-profile-edit-sign .fa {
    display: none !important;
}

/* Status Pill Polish */
.account-status {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eaf7f5;
    color: #0aa38a;
    font-weight: 600;
    font-size: 13px;
}

/* Completely remove bio description text area element card wrappers */
.um-field-description,
.um-field[data-key="description"],
.um-field-type_textarea,
.um-profile-body .um-row,
.um-row-1,
.um-profile-note,
.um-meta-text {
    display: none !important;
}

/* ==========================================================================
   3. GLOBAL BUTTON STYLE FOR MYNEEDS
   ========================================================================== */
button,
input[type="submit"],
input[type="button"],
.wp-element-button,
a.button,
a.wp-block-button__link,
.assessment-btn {
    background-color: #168881 !important;
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

/* Hover state for buttons */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-element-button:hover,
a.button:hover,
a.wp-block-button__link:hover,
.assessment-btn:hover {
    background-color: #126f70 !important;
    color: #ffffff !important;
}

/* Specific Assessment Button Overrides */
.assessment-btn {
    margin-top: 10px;
}

/* ==========================================================================
   4. FLUENT FORMS CUSTOM DESIGN
   ========================================================================== */
/* Range Slider Custom Tracks and Thumbs */
.ff-el-range-slider input[type="range"] {
    accent-color: #168881;
}

.ff-el-range-slider input[type="range"]::-webkit-slider-thumb {
    background: #168881;
    border: 2px solid #ffffff;
}

.ff-el-range-slider input[type="range"]::-moz-range-thumb {
    background: #168881;
    border: 2px solid #ffffff;
}

.ff-el-range-slider input[type="range"]::-moz-range-track {
    background: #d9f2ef;
}

/* Fluent Forms Buttons */
.ff-btn,
.ff-btn-submit,
.ff_submit_btn_wrapper .ff-btn {
    border-radius: 25px !important;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ff-btn:hover,
.ff-btn-submit:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   5. SITE-WIDE DESIGN WRAPPERS, LINKS, & UTILITIES
   ========================================================================== */
/* Force all standard theme list and article text links out of pink */
a {
    color: #168881;
    text-decoration: none;
}

a:hover, a:active, a:focus {
    color: #168881;
    text-decoration: underline !important;
}

/* Hide Header Site Titles */
.site-branding .site-title,
.site-header .site-title,
.header-title {
    display: none !important;
}

/* Footer Copyright Text Replacement Rules */
.site-info,
.footer-text,
.footer-bottom,
.copyright,
.site-footer .site-info {
    font-size: 0 !important;
}

.site-info::after,
.footer-text::after,
.footer-bottom::after,
.copyright::after {
    content: "© MYNeeds 2026. All rights reserved." !important;
    font-size: 14px !important;
    color: #000000;
}

/* ==========================================================================
   6. MYNEEDS CUSTOM DASHBOARD & CARDS
   ========================================================================== */
.myneeds-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f6f8f9;
}

.myneeds-profile-top {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.myneeds-profile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #168881 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border: none !important;
}

.myneeds-profile-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
}

.myneeds-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.myneeds-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e7ecec;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.myneeds-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.myneeds-date {
    font-size: 13px;
    color: #444444;
    margin-bottom: 10px;
}

.myneeds-empty {
    font-size: 13px;
    color: #888888;
    margin-bottom: 10px;
}

.myneeds-risk {
    background: #f6f8f9;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.myneeds-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #168881;
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
}

.myneeds-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s ease;
}

.myneeds-btn.primary {
    background: #168881 !important;
    color: #ffffff !important;
}

.myneeds-btn.primary:hover {
    background: #0f6f69 !important;
}

.myneeds-btn.secondary {
    background: #e7f6f3 !important;
    color: #168881 !important;
    border: 1px solid #bfe7df;
}

.myneeds-btn.secondary:hover {
    background: #d7f0eb !important;
}
