/* =========================================================
   Matrimonial – Matches Page  (matrimonial_couple_list.css)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
    --mcl-primary: #0d1b3e;
    --mcl-primary-lt: #eef0f6;
    --mcl-primary-dk: #060e22;
    --mcl-accent: #c8a45a;
    --mcl-sidebar-bg: #0d1b3e;
    --mcl-sidebar-txt: #a9b4cc;
    --mcl-border: #e8ddd0;
    --mcl-bg: #faf0e7;
    --mcl-card-bg: #ffffff;
    --mcl-text: #0d1b3e;
    --mcl-text-mid: #4a5568;
    --mcl-text-muted: #9aa5b4;
    --mcl-radius: 16px;
    --mcl-shadow: 0 4px 20px rgba(13, 27, 62, 0.08);
    --mcl-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.mcl-wrapper {
    background: var(--mcl-bg);
    min-height: 100vh;
    padding: 40px 0 80px;
    font-family: 'Inter', sans-serif;
}

.mcl-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1440px !important;
    /* Force a wider Dashboard layout */
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Left Sidebar ─────────────────────────────────────────── */
.mcl-sidebar {
    width: 290px;
    flex-shrink: 0;
    background: var(--mcl-sidebar-bg);
    background-image: linear-gradient(160deg, #0d1b3e 0%, #1a2a5e 60%, #0d1b3e 100%);
    border-radius: var(--mcl-radius);
    padding: 32px 24px;
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(13, 27, 62, 0.15);
}

.mcl-sidebar::-webkit-scrollbar {
    width: 3px;
}

.mcl-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* User card inside sidebar */
.mcl-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.mcl-user-avatar-wrap {
    flex-shrink: 0;
}

.mcl-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200, 164, 90, 0.7);
    padding: 2px;
    background: var(--mcl-sidebar-bg);
}

.mcl-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mcl-sidebar-txt);
    font-size: 24px;
}

.mcl-user-meta {
    flex: 1;
    min-width: 0;
}

.mcl-user-name {
    font-size: 16px;
    font-weight: 700;
    color: #f0e9da;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

/* Progress bar in sidebar */
.mcl-prog-bar-wrap {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
}

.mcl-prog-bar {
    height: 100%;
    background: linear-gradient(90deg, #c8a45a, #e8c47a);
    border-radius: 5px;
    transition: width 0.6s ease;
    min-width: 5px;
}

.mcl-prog-label {
    font-size: 13px;
    color: var(--mcl-sidebar-txt);
    font-weight: 500;
}

/* Nav items */
.mcl-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
}

.mcl-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--mcl-sidebar-txt);
    font-size: 15.5px;
    font-weight: 500;
    transition: all var(--mcl-transition);
    border: 1px solid transparent;
    position: relative;
}

.mcl-nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #f0e9da;
    text-decoration: none;
}

.mcl-nav-item.active {
    background: linear-gradient(90deg, rgba(200, 164, 90, 0.15) 0%, transparent 100%);
    border-color: transparent;
    color: #f0e9da;
    font-weight: 700;
    text-decoration: none;
}

.mcl-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--mcl-accent);
    border-radius: 0 4px 4px 0;
}

.mcl-nav-icon {
    width: 24px;
    text-align: center;
    font-size: 17px;
    color: var(--mcl-accent);
    flex-shrink: 0;
}

.mcl-nav-item.active .mcl-nav-icon {
    color: var(--mcl-accent);
}

.mcl-nav-item:hover .mcl-nav-icon {
    color: var(--mcl-accent);
}

/* Sidebar section */
.mcl-sidebar-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.mcl-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--mcl-sidebar-txt);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all var(--mcl-transition);
}

.mcl-quick-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f0e9da;
    text-decoration: none;
}

/* ── Main Content ──────────────────────────────────────────── */
.mcl-main {
    flex: 1;
    min-width: 0;
}

/* Section header */
.mcl-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    animation: mclFadeIn 0.35s ease both;
}

.mcl-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mcl-text);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.mcl-section-sub {
    font-size: 15px;
    color: var(--mcl-text-muted);
    margin: 0;
}

.mcl-count-badge {
    background: #e6ebf5;
    color: var(--mcl-primary);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Cards grid */
.mcl-cards-grid {
    display: flex;
    flex-wrap: wrap;
    /* for row layout */
}


/* ── Match Card styles (merged) ────────────────────────────── */
.partner-kanban-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--mcl-border);
    padding: 20px;
    border-radius: var(--mcl-radius);
    gap: 20px;
    transition: 0.25s;
    position: relative;
    padding-bottom: 28px;
    height: 100%;
}

.partner-kanban-card:hover {
    box-shadow: 0 12px 32px rgba(13, 27, 62, 0.08);
    transform: translateY(-3px);
    border-color: rgba(200, 164, 90, 0.4);
}

/* IMAGE */
.partner-logo img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
}

/* CONTENT */
.partner-content {
    flex: 1;
}

/* NAME */
.partner-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--mcl-primary);
}

/* TAG */
.partner-tag {
    background: #fdf5e6;
    color: #8a6200;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.tag-red {
    background: #fee2e2;
    color: #dc2626;
}

.partner-content .row {
    justify-content: space-between;
}

.match_candidate_card button {
    height: 36px;
}

.partner-kanban-card .partner-view-link {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--mcl-primary);
    border-color: var(--mcl-primary);
    padding: 5px;
}

.partner-view-link:hover {
    background-color: var(--mcl-primary);
    color: #fff;
}

.partner-kanban-card .partner-info div {
    font-size: 15px;
    color: var(--mcl-text-mid);
    margin-bottom: 0;
    padding: 0;
}

.partner-kanban-card .partner-info div.partner-tag {
    padding: 5px;
    display: flex;
    align-items: center;
}

.partner-info i {
    width: 18px;
    margin-right: 8px;
    color: var(--mcl-accent);
}

#load-more-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
}

/* ── Animation ────────────────────────────────────────────── */
@keyframes mclFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .mcl-inner {
        flex-direction: column;
        gap: 20px;
    }

    .mcl-sidebar {
        width: 100%;
        position: static;
        max-height: unset;
        padding: 20px;
    }

    .mcl-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mcl-nav-item {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 100px;
        justify-content: center;
        padding: 12px 10px;
    }

    .mcl-nav-item::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .mcl-wrapper {
        padding: 16px 0 40px;
    }

    .mcl-section-title {
        font-size: 22px;
    }

    .mcl-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mcl-nav-item {
        flex-direction: column;
        gap: 6px;
        padding: 12px 4px;
        min-width: auto;
        text-align: center;
    }

    .mcl-nav-item .mcl-nav-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mcl-nav-item .mcl-nav-label {
        display: block;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 600;
    }

    .mcl-user-card {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
}