/* ============================================================
   app_improvements.css — UI, UX & Responsive improvements
   Rules: same colors (#C32143, #840C38), same images.
   ============================================================ */

/* ── 1. BASE RESET & PERFORMANCE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* ── 2. FIX BODY MARGIN — prevents content hidden under navbar ─ */
body { margin-top: 50px !important; }
@media (max-width: 991px) { body { margin-top: 55px !important; } }
@media (max-width: 767px) { body { margin-top: 48px !important; } }

/* ── 3. NAVBAR IMPROVEMENTS ──────────────────────────────── */
#main_navbar { display: none !important; }  /* hide old navbar */

/* ── Fixed navbar: full-width flex, logo left + buttons right ── */
#my_nav {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100% !important;
    z-index: 1030;
    margin: 0 !important;
    padding: 0 12px !important;
    background: url('../images/navbar.png') center center / cover no-repeat, #E91E8C !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 48px;
    gap: 0;
}

/* ── Logo / Brand ── */
#nav_brand {
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
    margin-right: auto;
    padding: 6px 12px 6px 0;
    flex-shrink: 0;
}
#nav_brand img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    margin-right: 9px;
    flex-shrink: 0;
    object-fit: cover;
}
#nav_brand span {
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    letter-spacing: 0.3px;
}
@media (max-width: 540px) {
    #nav_brand span { display: none; }
    #nav_brand img  { height: 32px; width: 32px; }
}

/* ── Call Back button (inside flex navbar) ── */
#call_back {
    margin-left: 8px !important;
    padding: 5px 14px !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px !important;
    background-color: #fff !important;
    color: #C32143 !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none !important;
}
#call_back:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-color: #fff !important;
}
@media (max-width: 480px) { #call_back { display: none !important; } }

.nav_button {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.nav_button:hover, .nav_button:focus {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.6) !important;
    text-decoration: none;
}
.nav_button.active, .nav_button:active {
    background: rgba(255,255,255,0.25) !important;
}

/* Dropdown in fixed nav */
#my_nav .dropdown-menu {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 6px 0;
    margin-top: 4px;
}
#my_nav .dropdown-menu li a {
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    display: block;
    transition: background 0.15s;
}
#my_nav .dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #C32143;
    text-decoration: none;
}
#my_nav .dropdown-menu li a i {
    width: 18px;
    color: #C32143;
    margin-right: 6px;
}

/* ── MOBILE NAV: show/hide properly ──── */
@media (max-width: 740px) {
    /* Hide the new flex navbar completely on mobile */
    #my_nav {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    /* Show the original Bootstrap mobile navbar */
    #main_navbar {
        display: block !important;
        position: fixed;
        top: 0; width: 100%; z-index: 1030;
        background: transparent !important;
        box-shadow: none !important;
    }
    #main_navbar .navbar-inner {
        background: transparent !important;
        padding: 0 !important;
    }
    /* The inner container — only this gets the pink background (just 48px bar) */
    #main_navbar .container1 {
        background: #C32143 !important;
        background-image: none !important;
        height: auto !important;
        min-height: 48px !important;
        padding: 0 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    /* Brand text + hamburger bar */
    #main_navbar .navbar-header.nav_2 {
        background: transparent !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Hamburger icon: make it white/visible on pink bg */
    #main_navbar .navbar-toggle1 i {
        color: #fff !important;
        font-size: 22px !important;
    }
    /* Brand name text already white in HTML inline style, keep it */
    /* Dropdown menu — white background, not pink */
    #main_navbar .navbar-collapse {
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border-radius: 0 0 8px 8px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
}

/* Mobile Bootstrap navbar improvements */
.navbar-toggle1 {
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
}
.navbar-toggle1 .icon-bar { background-color: #fff !important; height: 2px; }
.navbar-toggle1 i { color: #fff !important; }

/* Collapse menu on mobile */
.navHeading a { color: #333 !important; font-weight: 600 !important; }
.navHeading a:hover { color: #C32143 !important; }
#bs-megadropdown-tabs {
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#bs-megadropdown-tabs .nav-1 > li > a {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── 4. PROFILE CARDS ────────────────────────────────────── */
.profile_top {
    margin-bottom: 12px !important;
}
.profile_top .panel {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
    background: #fff !important;
}
.profile_top .panel:hover {
    box-shadow: 0 6px 20px rgba(195,33,67,0.15) !important;
    transform: translateY(-2px);
}
.profile_top .panel img {
    border-radius: 4px;
    object-fit: cover;
}

/* Profile name styling */
.profile_top h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 4px 0 !important;
    letter-spacing: 0.3px;
}

/* Profile detail rows */
.profile_top .table_working_hours {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0 3px;
}
.profile_top .table_working_hours .day_label {
    color: #888;
    font-weight: 600;
    width: 38%;
    padding: 3px 6px 3px 0;
}
.profile_top .table_working_hours .day_value {
    color: #333;
    padding: 3px 0;
}

/* Blurred (premium) profile overlay effect */
.profile_top .panel[style*="blur"] {
    border-color: #ccc !important;
}

/* Action buttons in profile cards */
.profile_top .btn {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ── 5. PROFILE IMAGE CIRCLES ──────────────────────────── */
.profile_top .img-circle,
.profile-img-thumb {
    border: 3px solid #C32143;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* ── 6. BUTTONS — GLOBAL IMPROVEMENTS ──────────────────── */
.btn { border-radius: 5px; font-weight: 600; transition: all 0.2s ease; }
.btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(195,33,67,0.2); }

.btn-primary, .proBut {
    background-color: #C32143 !important;
    border-color: #C32143 !important;
    color: #fff !important;
}
.btn-primary:hover, .proBut:hover {
    background-color: #840C38 !important;
    border-color: #840C38 !important;
}

/* Send Interest / Shortlist / action buttons */
.btn-success { transition: all 0.2s ease; }
.btn-warning { transition: all 0.2s ease; }
.btn-danger  { transition: all 0.2s ease; }
.btn-info    { transition: all 0.2s ease; }

.btn-block + .btn-block { margin-top: 6px; }

/* ── 7. FORM INPUTS ─────────────────────────────────────── */
.form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 13px;
    height: 36px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: #C32143;
    box-shadow: 0 0 0 3px rgba(195,33,67,0.15);
    outline: none;
}
textarea.form-control { height: auto; min-height: 80px; }
select.form-control { height: 36px; }

/* SumoSelect theme fix */
.SumoSelect > .CaptionCont {
    border-radius: 5px;
    border: 1px solid #ccc;
    min-height: 36px;
    font-size: 13px;
}
.SumoSelect.open > .CaptionCont {
    border-color: #C32143;
    box-shadow: 0 0 0 3px rgba(195,33,67,0.15);
}

/* ── 8. MATCHES FILTER SIDEBAR ──────────────────────────── */
.filter-section,
[class*="filter_"] {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 12px;
}

/* Filter headings (Basics, Personal, etc.) */
.btn[data-toggle="collapse"],
.filter-heading {
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
}

/* Search Profile ID input */
#searchById {
    border-radius: 20px !important;
    padding-left: 14px;
    border: 2px solid #C32143 !important;
}

/* ── 9. MATCHES COUNT BADGE ─────────────────────────────── */
#matchesCount, #totalMatches {
    font-weight: 700;
    color: #C32143;
}

/* ── 10. PAGINATION ─────────────────────────────────────── */
#pagination-div,
#pagination-div1 {
    padding: 6px 0;
}
.pagination > li > a,
.pagination > li > span {
    color: #C32143;
    border-radius: 4px;
    margin: 0 2px;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.15s;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: #C32143;
    border-color: #C32143;
}
.pagination > li > a:hover {
    background-color: rgba(195,33,67,0.1);
    border-color: #C32143;
    color: #C32143;
}

/* ── 11. WAIT OVERLAY ───────────────────────────────────── */
.wait-overlay,
.loading-overlay {
    backdrop-filter: blur(2px);
}
/* "Please wait" spinner */
.plainmodal-overlay ~ div,
body > div[style*="Please wait"],
[id*="wait"], [class*="wait"] {
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}

/* ── 12. MODAL IMPROVEMENTS ─────────────────────────────── */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: none;
}
.modal-header {
    background: linear-gradient(135deg, #C32143 0%, #840C38 100%);
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 14px 20px;
}
.modal-header h4,
.modal-header .modal-title { color: #fff; font-weight: 700; }
.modal-header .close { color: #fff; opacity: 0.8; font-size: 22px; }
.modal-header .close:hover { opacity: 1; }
.modal-body { padding: 20px; }
.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
    border-radius: 0 0 10px 10px;
}

/* ── 13. CARDS / PANELS (generic) ───────────────────────── */
.panel {
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
}
.panel-heading {
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    font-size: 14px;
}
.panel:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }

/* ── 14. TABLE RESPONSIVENESS ────────────────────────────── */
.table-responsive { border: none; -webkit-overflow-scrolling: touch; }
.table { font-size: 13px; }
.table > thead > tr > th {
    background-color: #C32143;
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 10px 12px;
}
.table > tbody > tr > td { padding: 9px 12px; vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #fdf6f8; }
.table-hover > tbody > tr:hover { background-color: rgba(195,33,67,0.05); }

/* ── 15. FOOTER RESPONSIVE ──────────────────────────────── */
.footer {
    padding: 30px 20px 20px !important;
    border-top: 3px solid #C32143;
}
.footer h4.mainFormStyle {
    color: #C32143;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid #C32143;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.footer_links { list-style: none; padding: 0; margin: 0; }
.footer_links li { padding: 4px 0; font-size: 13px; }
.footer_links li a { color: #555; transition: color 0.15s; }
.footer_links li a:hover { color: #C32143; text-decoration: none; }
.footer_social { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.footer_social li a { color: #C32143; font-size: 22px; transition: transform 0.15s; display: inline-block; }
.footer_social li a:hover { transform: scale(1.2); }

@media (max-width: 767px) {
    .footer .col-md-4,
    .footer .col-md-2,
    .footer .col-md-1,
    .footer .col-md-3 { margin-bottom: 20px; }
    .footer .divider-1 { display: none !important; }
    .footer h4.mainFormStyle { font-size: 14px; }
}

/* ── 16. LOGIN PAGE ──────────────────────────────────────── */
.login_page .col-md-4,
.login_page > .row > div[style*="rgba(0, 0, 0, 0.7)"] {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    padding: 28px 24px !important;
}
.label-login {
    color: #eee;
    font-weight: 600;
    font-size: 13px;
}
.form-text.white-text {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    width: 100%;
}
.form-text.white-text:focus {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.6) !important;
    outline: none;
    box-shadow: none !important;
}
.form-text.white-text::placeholder { color: rgba(255,255,255,0.5); }

@media (max-width: 767px) {
    .login_page { min-height: auto !important; padding: 20px 0; }
    .login_page .col-md-6 { display: none; }
    .login_page .col-md-4 { margin: 0 auto; float: none !important; width: 92% !important; }
    .login_page .col-md-1 { display: none; }
}

/* ── 17. DASHBOARD CARDS ─────────────────────────────────── */
.dashboard-stat,
[class*="dashboard-"] .panel {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-stat:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* ── 18. NOTIFICATION BADGE ──────────────────────────────── */
.notification-counter {
    border-radius: 10px !important;
    font-size: 10px !important;
    min-width: 18px;
    height: 18px;
    line-height: 12px;
    text-align: center;
    padding: 3px 4px !important;
    background-color: #C32143 !important;
}

/* ── 19. VERIFY BANNER ───────────────────────────────────── */
div[style*="paleturquoise"] {
    border-radius: 0 !important;
    border-left: 5px solid #C32143;
    background: linear-gradient(90deg, rgba(195,33,67,0.08) 0%, rgba(0,0,0,0) 100%) !important;
    padding: 10px 20px !important;
}

/* ── 20. RESPONSIVE GRID HELPERS ─────────────────────────── */
@media (max-width: 767px) {
    /* Full width on mobile for most sidebars */
    .col-md-3.profile_left2,
    [class*="profile_left"] { width: 100% !important; margin-bottom: 15px; }
    .col-md-9.profile_left2 { width: 100% !important; padding: 0 8px; }

    /* Stack columns */
    .row { margin-left: -8px; margin-right: -8px; }
    [class^="col-"] { padding-left: 8px; padding-right: 8px; }

    /* Profile cards full width */
    .profile_top .row > div { margin-bottom: 6px; }
    .profile_top .panel { margin-bottom: 10px; }

    /* Filter sidebar toggle */
    .filter-section { margin-bottom: 8px; }

    /* Action buttons stack on mobile */
    .profile_top .btn { display: block; width: 100%; margin-bottom: 4px; }
    .profile_top .btn + .btn { margin-left: 0 !important; }
}

@media (max-width: 480px) {
    /* Extra small: tighten up everything */
    body { font-size: 13px; }
    h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
    .modal-dialog { margin: 6px; }
    .pagination > li > a { padding: 5px 9px; font-size: 12px; }
}

/* ── 21. PROFILE VIEW PAGE ───────────────────────────────── */
.table_working_hours { table-layout: fixed; word-break: break-word; }
@media (max-width: 767px) {
    .table_working_hours .day_label { width: 42%; font-size: 12px; }
    .table_working_hours .day_value { font-size: 12px; }
}

/* ── 22. PHOTO GALLERY ───────────────────────────────────── */
.gallery img {
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.gallery img:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

/* ── 23. SCROLLBAR POLISH (webkit) ──────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #C32143; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #840C38; }

/* ── 24. FOCUS ACCESSIBILITY ─────────────────────────────── */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #C32143;
    outline-offset: 2px;
}

/* ── 25. SMOOTH PAGE TRANSITIONS ─────────────────────────── */
.panel, .btn, .form-control, a, img { transition-timing-function: ease-in-out; }

/* ── 26. PRINT ───────────────────────────────────────────── */
@media print {
    #my_nav, #main_navbar, #call_back, .footer { display: none !important; }
    body { margin-top: 0 !important; }
}

/* ── 27. ADVANCED SEARCH / FILTER COLLAPSIBLES ─────────── */
[data-toggle="collapse"] {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
[data-toggle="collapse"] .fa-caret-down,
[data-toggle="collapse"] .fa-caret-up {
    transition: transform 0.2s;
}
[data-toggle="collapse"].collapsed .fa-caret-down { transform: rotate(-90deg); }

/* ── 28. OFFERS PAGE ─────────────────────────────────────── */
.offer-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(195,33,67,0.2); }

/* ── 29. INBOX / MESSAGES ───────────────────────────────── */
.inbox-item {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 6px;
    transition: background 0.15s;
}
.inbox-item:hover { background-color: rgba(195,33,67,0.04); }
.inbox-item .unread { font-weight: 700; color: #C32143; }

/* ── 30. BACK TO TOP (utility) ───────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #C32143;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
    transition: background 0.2s, transform 0.2s;
    align-items: center;
    justify-content: center;
}
#backToTop:hover { background: #840C38; transform: translateY(-2px); }
#backToTop.visible { display: flex; }

/* ── 31. PAGE WRAPPER TOP-MARGIN FIX ─────────────────────── */
/*
 * All pages used margin-top:50px / margin:50px 25px on their .container1
 * wrapper div to offset the OLD non-fixed navbar.
 * Now #my_nav is position:fixed and body has margin-top:50px, so those
 * per-page top margins create double-spacing.
 * One rule covers every page without touching each file.
 */
.grid_31,
.grid_310,
.grid_312,
.grid_3109,
.grid_3101 {
    margin-top: 0 !important;
}
/* Reset top margin on all page content .container1 boxes.
   The old navbar .container1 is hidden (inside #main_navbar display:none)
   so this rule is safe to apply broadly. */
.container1 {
    margin-top: 0 !important;
}
/* Restore a small breathing room below the fixed bar for bare .container1 pages */
.grid_31 > .container1,
.grid_310 > .container1,
.grid_312 > .container1,
.grid_3109 > .container1 {
    padding-top: 6px;
}
/* Pages that use .container1 as direct first child of their page div */
.profile1#grid_profile {
    margin-top: 0 !important;
}

/* ── 32. SHARED LISTING PAGE STYLES (viewed, shortlisted, etc.) ─ */
/* Card-style wrapper used on: viewed, shortlisted, photorequest,
   mutual matches, contactsviewed, documentrequest, etc.           */
#userLastViewedProfileForm,
#userShortlistedProfileForm,
#userShortlistProfileForm,
#userPhotoRequestProfileForm,
#MutualForm,
#searchAdvancedPartnerForm,
#searchPartnerForm,
#contactViewedForm,
#documentRequestForm,
#horoscopeRequestForm {
    margin: 0 !important;
    padding: 15px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
@media (max-width: 767px) {
    #userLastViewedProfileForm,
    #userShortlistedProfileForm,
    #userShortlistProfileForm,
    #userPhotoRequestProfileForm,
    #MutualForm,
    #searchAdvancedPartnerForm,
    #searchPartnerForm,
    #contactViewedForm,
    #documentRequestForm,
    #horoscopeRequestForm {
        padding: 10px !important;
        border-radius: 6px;
    }
}

/* ── 33. VIEW PROFILE PAGE ────────────────────────────────── */
#view_profile {
    margin: 0 !important;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
#image-preview {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    border-radius: 8px;
    border: 3px solid #C32143;
    object-fit: cover;
}
@media (max-width: 767px) {
    #image-preview { max-width: 140px !important; }
    #view_profile .col-md-2,
    #view_profile .col-md-3,
    #view_profile .col-md-4,
    #view_profile .col-md-8,
    #view_profile .col-md-9 {
        width: 100% !important;
        text-align: center;
    }
}

/* ── 34. INBOX PAGE ───────────────────────────────────────── */
.container1[style*="margin:50px"],
.container1[style*="margin: 50px"] {
    margin-top: 0 !important;
}

/* ── 35. REGISTER PAGE ────────────────────────────────────── */
#regPage, .banner {
    margin-top: 0 !important;
    padding-top: 12px;
}
@media (max-width: 767px) {
    #regPage .col-md-6,
    #regPage .col-md-5 { width: 100% !important; }
    #regPage .col-md-1 { display: none; }
    .register-form-card {
        margin: 0 8px;
        border-radius: 10px;
        overflow: hidden;
    }
}

/* ── 36. ADVANCED SEARCH / ADVANCED MATCH SEARCH ─────────── */
#searchAdvancedPartnerForm .col-md-3 {
    margin-bottom: 10px;
}
@media (max-width: 767px) {
    #searchAdvancedPartnerForm .col-md-3,
    #searchAdvancedPartnerForm .col-md-9,
    #searchAdvancedPartnerForm .col-md-12 {
        width: 100% !important;
        padding: 0 8px;
    }
}

/* ── 37. PAYMENT PAGE ────────────────────────────────────── */
.payment-plan-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.payment-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(195,33,67,0.2);
}
@media (max-width: 767px) {
    .col-xs-12.col-sm-6.col-md-3.col-lg-3 {
        margin-bottom: 12px;
    }
}

/* ── 38. ABOUT & CONTACT PAGES ───────────────────────────── */
.grid_312,
.grid_310 {
    padding-top: 10px;
}
@media (max-width: 767px) {
    .grid_312 .col-md-6,
    .grid_312 .col-md-5,
    .grid_310 .col-md-7 {
        width: 100% !important;
    }
    .grid_312 .col-md-1,
    .grid_310 .col-md-1 { display: none; }
}

/* ── 39. SECOND MARRIAGE / NO CASTE PROFILE PAGES ────────── */
#secondMarriageForm,
#nocasteForm {
    margin: 0 !important;
    padding: 15px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── 40. EDIT PROFILE PAGE ────────────────────────────────── */
#editProfileForm,
.edit-profile-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 16px;
    margin: 0 !important;
}
/* Edit profile tab pills */
.nav-pills > li > a {
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    transition: all 0.15s;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover {
    background-color: #C32143;
    color: #fff;
}
.nav-pills > li > a:hover { background-color: rgba(195,33,67,0.08); color: #C32143; }

/* Edit profile section headers */
.profile-section-title {
    color: #C32143;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid #C32143;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

/* ── 41. GALLERY UPLOAD PAGE ──────────────────────────────── */
.gallery-upload-zone {
    border: 2px dashed #C32143;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #C32143;
    transition: background 0.2s;
    cursor: pointer;
}
.gallery-upload-zone:hover { background: rgba(195,33,67,0.04); }

/* ── 42. UNIVERSAL MOBILE TABLE FIX ──────────────────────── */
/* Any table that isn't already wrapped in .table-responsive */
@media (max-width: 767px) {
    table:not(.table-responsive table) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    /* Profile detail tables (day_label / day_value layout) */
    .table_working_hours { display: table; width: 100%; }
    .table_working_hours td { white-space: normal; word-break: break-word; }
}

/* ── 43. UNIVERSAL BUTTON MOBILE FIX ─────────────────────── */
@media (max-width: 480px) {
    /* Prevent button overflow on very small screens */
    .btn-group > .btn { padding: 5px 8px; font-size: 12px; }
    .btn-group-horizontal .btn { margin-bottom: 4px; }
}

/* ── 44. NOTIFICATION / REQUEST PAGES ────────────────────── */
.notification-list-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: background 0.15s;
}
.notification-list-item:hover { background: rgba(195,33,67,0.04); }
.notification-list-item .profile-thumb {
    border-radius: 50%;
    border: 2px solid #C32143;
    object-fit: cover;
}

/* ── 45. MEMBERSHIP / PAYMENT SUCCESS PAGES ──────────────── */
.membership-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background-color: #C32143;
    color: #fff;
}

/* ── 46. PLACEHOLDER STATES ──────────────────────────────── */
::placeholder { color: #aaa; font-size: 13px; }
::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }

/* ── 47. LINK STYLES ─────────────────────────────────────── */
a { color: #C32143; transition: color 0.15s; }
a:hover { color: #840C38; }
a:focus { color: #840C38; }

/* ── 48. MATCHES PAGE – COLUMN ALIGNMENT FIX ─────────────── */
/*
 * The filter (.col-md-3) and profile list (.col-md-9) inside #match_content
 * are direct children without a Bootstrap .row wrapper, causing float misalignment.
 * Use flexbox to fix without touching the HTML.
 */
#match_content {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
}
#match_content .breadcrumb1,
#match_content > #match_filter_toggle,
#match_content > script {
    flex-basis: 100%;
    width: 100%;
}
#match_content .col-md-3.match_right {
    flex: 0 0 25%;
    max-width: 25%;
    width: 25%;
    box-sizing: border-box;
}
#match_content .col-md-9.profile_left2 {
    flex: 0 0 75%;
    max-width: 75%;
    width: 75%;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    #match_content .col-md-3.match_right,
    #match_content .col-md-9.profile_left2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ── 49. DASHBOARD – BETTER CARD + SIDEBAR ───────────────── */
/* Sidebar menu items */
.slidemenus a.sidemenuTitle,
.slidemenus a.sidemenuTitle1 {
    font-size: 13px !important;
    font-weight: 600;
    color: #444;
    display: block;
    padding: 2px 0;
    transition: color 0.15s;
}
.slidemenus a.sidemenuTitle:hover,
.slidemenus a.sidemenuTitle1:hover { color: #C32143 !important; text-decoration: none; }
.boxbadge {
    background: #C32143 !important;
    color: #fff !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    padding: 1px 7px !important;
    min-width: 22px;
    text-align: center;
    border: none !important;
}
/* New Matches section */
#flexiselDemo3 li { text-align: center; }
#flexiselDemo3 img {
    border: 3px solid #C32143 !important;
    border-radius: 50% !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
#flexiselDemo3 img:hover { transform: scale(1.07); box-shadow: 0 4px 16px rgba(195,33,67,0.25); }

/* Membership card */
.smokewhite .card {
    border-radius: 8px !important;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* ── 50. PROFILE CARDS – BETTER LIST ALIGNMENT ───────────── */
/* Ensure profile info table columns align cleanly */
.table_working_hours {
    width: 100%;
    table-layout: fixed;
}
.table_working_hours td.day_label {
    word-break: break-word;
    vertical-align: top;
}
.table_working_hours td.day_value {
    word-break: break-word;
    vertical-align: top;
}
/* Verified badge colour */
.profile_top span[style*="color: green"] { font-size: 13px; }

/* Action button row in profile cards */
.profile_top .btn-group .btn {
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
}
@media (max-width: 767px) {
    .profile_top .btn-group { display: flex; flex-wrap: wrap; gap: 4px; }
    .profile_top .btn-group .btn { flex: 1 1 auto; }
}

/* ── 51. LOADING SKELETON ANIMATION ─────────────────────── */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   §52  PROFILE CARD — MODERN LOOK  (no workflow changes)
   ══════════════════════════════════════════════════════════════ */

/* Card shell */
.profile_top .panel {
    background: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 14px rgba(195,33,67,0.10) !important;
    border-left: 4px solid #C32143 !important;
    padding: 12px 14px 10px 14px !important;
    margin-bottom: 14px !important;
    transition: box-shadow 0.22s, transform 0.18s !important;
}
.profile_top .panel:hover {
    box-shadow: 0 6px 28px rgba(195,33,67,0.18) !important;
    transform: translateY(-2px) !important;
}

/* ── Name: override inline color:green ── */
.profile_top h5 {
    color: #C32143 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 2px 0 6px 0 !important;
    letter-spacing: 0.2px;
    text-transform: capitalize !important;
}

/* ── Plan badge: override inline background:#00008B ── */
.profile_top h5 span[style*="background:#00008B"],
.profile_top h5 span[style*="background: #00008B"],
.profile_top h5 span[style*="background:#000080"] {
    background: linear-gradient(135deg, #C32143 0%, #E91E8C 100%) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 2px 11px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    vertical-align: middle !important;
}

/* ── Profile ID row: profile-id link + meta spans ── */
.profile_top a[style*="color: #C32143"],
.profile_top a[style*="color:#C32143"] {
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}
.profile_top span[style*="color: grey"],
.profile_top span[style*="color:grey"] {
    font-size: 12px !important;
    color: #999 !important;
}

/* ── "Verified Profile" + "Contacts Viewed": override inline green ── */
.profile_top span[style*="color: green"],
.profile_top span[style*="color:green"] {
    color: #C32143 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: rgba(195,33,67,0.07);
    padding: 1px 8px;
    border-radius: 20px;
}

/* ── Profile image container: override inline border:grey ── */
.profile_top [style*="border: 1px solid grey"],
.profile_top [style*="border:1px solid grey"],
.profile_top [style*="border: 2px solid #000"] {
    border: 2px solid #f5d0da !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* ── Info tables inside cards ── */
.profile_top .table_working_hours {
    font-size: 13px !important;
    width: 100% !important;
}
.profile_top .table_working_hours td.day_label {
    color: #aaa !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    padding: 4px 8px 4px 0 !important;
    width: 42% !important;
}
.profile_top .table_working_hours td.day_value {
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 4px 0 !important;
}

/* ── Action buttons row ── */
.profile_top .btn-sm {
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.18s !important;
}
.profile_top .btn-warning {
    background: linear-gradient(135deg, #E91E8C, #C32143) !important;
    border: none !important;
    color: #fff !important;
}
.profile_top .btn-warning:hover {
    opacity: 0.88 !important;
    transform: scale(1.03) !important;
}
.profile_top .btn-info {
    background: #fff !important;
    border: 2px solid #C32143 !important;
    color: #C32143 !important;
}
.profile_top .btn-info:hover {
    background: #C32143 !important;
    color: #fff !important;
}
.profile_top .btn-success {
    background: linear-gradient(135deg, #C32143, #E91E8C) !important;
    border: none !important;
    color: #fff !important;
}
.profile_top .btn-success:hover {
    opacity: 0.88 !important;
    transform: scale(1.03) !important;
}

/* ── Separator line between cards ── */
.profile_top { margin-bottom: 14px !important; }

/* ══════════════════════════════════════════════════════════════
   §53  VIEW PROFILE PAGE — MODERN LOOK  (no workflow changes)
   ══════════════════════════════════════════════════════════════ */

/* Page wrapper */
#view_container {
    margin-top: 10px !important;
}

/* Main profile card */
#view_container .profile_left {
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 20px rgba(195,33,67,0.09) !important;
    padding: 18px !important;
}

/* Profile ID header */
#view_container h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #C32143 !important;
    border-bottom: 2px solid #fce4ec !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
}

/* Section card wrapper */
#view_container .overview {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06) !important;
    margin-bottom: 14px !important;
}

/* Section headers h3 */
#view_container h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #C32143 !important;
    border-left: 4px solid #C32143 !important;
    padding-left: 10px !important;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
}

/* Section divider hr */
#view_container hr {
    border-top: 1px solid #fce4ec !important;
    margin: 12px 0 !important;
}

/* Data tables inside view profile */
#view_container .table_working_hours {
    width: 100% !important;
    font-size: 13px !important;
}
#view_container td.day_label {
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    padding: 6px 8px 6px 0 !important;
    width: 36% !important;
    vertical-align: top !important;
}
#view_container td.day_value {
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 0 !important;
    vertical-align: top !important;
}
#view_container td.text-left {
    color: #ccc !important;
    padding: 6px 6px !important;
    font-size: 12px !important;
    vertical-align: top !important;
}

/* Breadcrumb / sidebar buttons */
.viewprofile_button {
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1.5px solid #e0e0e0 !important;
    color: #444 !important;
    background: #fff !important;
    transition: all 0.18s !important;
    padding: 7px 12px !important;
}
.viewprofile_button:hover {
    border-color: #C32143 !important;
    color: #C32143 !important;
    background: rgba(195,33,67,0.05) !important;
}

/* Profile image in view */
#view_container .image img.img-responsive {
    border-radius: 10px !important;
    border: 3px solid #fce4ec !important;
    box-shadow: 0 3px 14px rgba(195,33,67,0.12) !important;
    transition: transform 0.2s !important;
}
#view_container .image img.img-responsive:hover {
    transform: scale(1.02) !important;
}

/* Gallery thumbs */
#view_container #gallery_thumbs img,
#view_container #thumb_container img {
    border-radius: 50% !important;
    border: 2px solid #C32143 !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    margin: 3px !important;
    transition: transform 0.15s !important;
}
#view_container #gallery_thumbs img:hover { transform: scale(1.1) !important; }

/* Photo gallery grid */
#view_container #photo_thumbs .col-md-2 {
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08) !important;
    margin-bottom: 12px !important;
}
#view_container #photo_thumbs img {
    border-radius: 8px !important;
}

/* Tab content area */
#view_container .tab-content { padding: 0 !important; }
#view_container .tab_box {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 16px !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05) !important;
    margin-bottom: 12px !important;
}

/* "About Myself" description */
#view_container .basic_1-left.desc p {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.7 !important;
}

/* Edit buttons in sections */
#view_container .btn-primary.btn-sm.pull-right.edit_button {
    background: transparent !important;
    border: 1.5px solid #C32143 !important;
    color: #C32143 !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    padding: 3px 12px !important;
}
#view_container .btn-primary.btn-sm.pull-right.edit_button:hover {
    background: #C32143 !important;
    color: #fff !important;
}

/* Request Photo button */
#view_container .btn-danger[onclick*="photoRequest"] {
    background: linear-gradient(135deg, #C32143, #E91E8C) !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    transition: opacity 0.18s !important;
}

/* Contact details section header */
#view_container .contact h3 {
    font-size: 14px !important;
}

/* Profile percentage circle label */
#view_container #profileComplete span {
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 600 !important;
}

/* ── Mobile responsive for view profile ── */
@media (max-width: 767px) {
    #view_container .profile_left { padding: 12px !important; border-radius: 8px !important; }
    #view_container h2 { font-size: 14px !important; }
    #view_container h3 { font-size: 13px !important; }
    #view_container td.day_label,
    #view_container td.day_value { font-size: 12px !important; }
}
