﻿/* =========================
   MEMBER PAGE - NABAAN
========================= */

.member-page {
    padding: 24px 0 50px;
}

.member-header {
    margin-bottom: 24px;
}

    .member-header h1 {
        font-size: 3rem;
        font-weight: 900;
        color: #111827;
        margin-bottom: 6px;
    }

    .member-header p {
        color: #6b7280;
        font-size: 1rem;
        margin: 0;
    }

/* =========================
   MEMBER TOOLBAR
========================= */

.member-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.member-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.member-search-input {
    flex: 1;
    height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 0 22px;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    background: #fff;
}

    .member-search-input:focus {
        border-color: #111827;
        box-shadow: 0 0 0 4px rgba(17, 24, 39, .08);
    }

.member-search-btn {
    height: 54px;
    min-width: 165px;
    padding: 0 20px;
    border: none;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    font-size: .98rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .14);
    transition: .22s;
}

    .member-search-btn:hover {
        background: #1f2937;
        color: #fff;
        transform: translateY(-2px);
    }

.member-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.member-action-btn {
    height: 54px;
    min-width: 165px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #111827;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    font-size: .98rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .14);
    transition: .22s;
}

    .member-action-btn:hover {
        background: #1f2937;
        color: #fff;
        transform: translateY(-2px);
    }

    .member-action-btn span {
        font-size: 1.2rem;
    }

/* =========================
   MEMBER GRID / CARD
========================= */

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.member-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    transition: .25s;
}

    .member-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(15, 23, 42, .13);
    }

.member-photo-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f3f4f6;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.member-body {
    padding: 18px;
}

.member-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 10px;
}

.member-level {
    color: #6b7280;
    margin-bottom: 14px;
    font-weight: 600;
}

.member-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.member-badge {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .9rem;
    color: #374151;
    font-weight: 800;
}

/* =========================
   CARD BUTTONS
========================= */

.member-buttons {
    display: flex;
    gap: 10px;
}

    .member-buttons a,
    .member-buttons button {
        flex: 1;
        height: 44px;
        border-radius: 12px;
        font-weight: 800;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

.btn-view {
    background: #111827;
    color: #fff;
}

    .btn-view:hover {
        background: #000;
        color: #fff;
    }

.btn-edit {
    background: #fff;
    border: 1px solid #d1d5db !important;
    color: #111827;
}

    .btn-edit:hover {
        background: #f9fafb;
        color: #111827;
    }

.btn-delete {
    background: #fff;
    border: 1px solid #ef4444 !important;
    color: #ef4444;
}

    .btn-delete:hover {
        background: #ef4444;
        color: #fff;
    }

/* =========================
   DETAIL PAGE
========================= */

.member-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 25px;
    transition: .2s;
}

    .member-back-btn:hover {
        background: #000;
        transform: translateY(-2px);
    }

.member-detail-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.member-detail-photo-box {
    width: 360px;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
}

    .member-detail-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.member-detail-info h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 22px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 13px 0;
}

.member-stat-box {
    margin-top: 28px;
    background: #f9fafb;
    border-radius: 18px;
    padding: 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* =========================
   SKILL GUIDE
========================= */

.skill-guide-section {
    margin-top: 28px;
}

.skill-guide-card {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

    .skill-guide-card h5 {
        font-size: 1.5rem;
        font-weight: 900;
        margin-bottom: 18px;
        color: #111827;
    }

.skill-guide-item {
    font-size: 1rem;
    padding: 12px 0;
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}

    .skill-guide-item:last-child {
        border-bottom: none;
    }

/* =========================
   PAGINATION
========================= */

.member-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .member-pagination a {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #fff;
        border: 1px solid #d1d5db;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #111827;
        font-weight: 800;
    }

        .member-pagination a:hover {
            background: #f3f4f6;
        }

        .member-pagination a.active {
            background: #111827;
            color: #fff;
            border-color: #111827;
        }

/* =========================
   STATUS PAGE
========================= */

.status-page {
    width: 100%;
    max-width: 1800px;
    margin: auto;
    padding: 30px 35px 60px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .status-header h1 {
        font-size: 2.2rem;
        font-weight: 900;
        color: #111827;
        margin: 0;
    }

.btn-back {
    background: #6b7280;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none;
}

    .btn-back:hover {
        background: #4b5563;
        color: #fff;
    }

.status-dashboard {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

    .status-card p {
        font-size: 20px;
        font-weight: 700;
    }

    .status-card h2 {
        font-size: 50px;
        font-weight: 900;
    }

        .status-card h2 span {
            font-size: 24px;
            font-weight: 600;
        }
.status-icon.blue {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

    .status-dot.online {
        background: #22c55e;
    }

    .status-dot.offline {
        background: #9ca3af;
    }

.status-panel {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.status-panel-top {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.member-total {
    font-size: 1.15rem;
    font-weight: 900;
    color: #111827;
}

    .member-total span {
        color: #0ea5e9;
    }

.status-search-box {
    width: 420px;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 15px;
    transition: .2s;
}

    .status-search-box:hover {
        border-color: #9ca3af;
    }

    .status-search-box:focus-within {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

.status-search-box i {
    font-size: 18px;
    color: #9ca3af;
}

    .status-search-box input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
    }

        .status-search-box input::placeholder {
            color: #9ca3af;
            font-weight: 600;
        }

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.status-item {
    min-height: 92px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

    .status-item:nth-child(4n) {
        border-right: none;
    }

.status-member {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

.status-name {
    font-size: 1rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
}

.status-label {
    margin-top: 6px;
    font-size: .85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 7px;
}

    .status-label span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
    }

    .status-label.online {
        color: #22c55e;
    }

        .status-label.online span {
            background: #22c55e;
        }

    .status-label.offline {
        color: #6b7280;
    }

        .status-label.offline span {
            background: #9ca3af;
        }

.switch-toggle {
    width: 52px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #cfd5dc;
    padding: 4px;
    cursor: pointer;
    transition: .2s;
}

    .switch-toggle span {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        display: block;
        transition: .2s;
    }

    .switch-toggle.active {
        background: #22c55e;
    }

        .switch-toggle.active span {
            transform: translateX(22px);
        }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
    .member-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .status-item:nth-child(4n) {
        border-right: 1px solid #e5e7eb;
    }

    .status-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 992px) {
    .member-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .member-search-form {
        width: 100%;
    }

    .member-action-buttons {
        margin-left: 0;
        width: 100%;
    }

    .member-action-btn {
        flex: 1;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-detail-card {
        grid-template-columns: 1fr;
    }

    .member-detail-photo-box {
        width: 100%;
        height: 360px;
    }

    .status-page {
        padding: 24px 16px 40px;
    }

    .status-dashboard {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .status-panel-top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .status-search-box {
        width: 100%;
    }

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-item:nth-child(3n),
    .status-item:nth-child(4n) {
        border-right: 1px solid #e5e7eb;
    }

    .status-item:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 576px) {
    .member-header h1 {
        font-size: 2.2rem;
    }

    .member-search-form {
        flex-direction: column;
    }

    .member-search-btn {
        width: 100%;
        height: 50px;
    }

    .member-action-buttons {
        flex-direction: column;
    }

    .member-action-btn {
        width: 100%;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .status-item {
        border-right: none !important;
    }
}

/* =========================
   MOBILE MEMBER PAGE
========================= */
@media (max-width: 768px) {

    .member-page {
        padding: 26px 20px 60px;
    }

    .member-header {
        margin-bottom: 24px;
    }

        .member-header h1 {
            font-size: 3rem;
            line-height: 1.05;
        }

        .member-header p {
            font-size: 1.05rem;
        }

    .member-toolbar {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 30px;
    }

    .member-search-form {
        width: 100% !important;
        max-width: none !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex: none;
    }

    .member-search-input {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        height: 58px;
        flex: none;
        display: block;
        box-sizing: border-box;
        border-radius: 18px;
        padding: 0 22px;
        border: 2px solid #d1d5db;
        background: #ffffff;
        font-size: 1.08rem;
        font-weight: 800;
        text-align: center;
    }

    .member-search-btn {
        width: 100% !important;
        min-width: 0;
        height: 58px;
        border-radius: 18px;
        font-size: 1.12rem;
    }

    .member-action-buttons {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .member-action-btn {
        width: 100%;
        min-width: 0;
        height: 54px;
        border-radius: 18px;
        font-size: 1.08rem;
    }

    .member-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .member-photo-wrap {
        height: 300px;
    }
}

/* =========================
   MOBILE STATUS PAGE
========================= */
@media (max-width: 768px) {

    .status-page,
    .member-status-page {
        padding: 28px 18px 60px;
    }

    .status-header,
    .member-status-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 28px;
    }

        .status-header h1,
        .member-status-header h1 {
            font-size: 2.8rem;
            line-height: 1.15;
            font-weight: 900;
            margin: 0;
            color: #111827;
        }

    .status-back-btn,
    .back-btn {
        width: 92px;
        height: 76px;
        border-radius: 18px;
        background: #6b7280;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 1.15rem;
        font-weight: 900;
        text-decoration: none;
        flex-shrink: 0;
    }

    .status-summary-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 28px;
    }

    .status-summary-card {
        min-height: 150px;
        border-radius: 24px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
        padding: 26px;
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .status-summary-icon {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #e0f2fe;
        font-size: 1.6rem;
        flex-shrink: 0;
    }

    .status-summary-content {
        flex: 1;
    }

    .status-summary-title {
        font-size: 1.35rem;
        font-weight: 900;
        margin-bottom: 10px;
        color: #111827;
    }

    .status-summary-number {
        font-size: 3.4rem;
        font-weight: 900;
        line-height: 1;
        color: #111827;
    }

        .status-summary-number span {
            font-size: 1.45rem;
            margin-left: 6px;
        }

    .status-list-card {
        border-radius: 24px;
        background: #ffffff;
        padding: 24px 18px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
        border: 1px solid #e5e7eb;
    }

        .status-list-card h3 {
            font-size: 1.35rem;
            font-weight: 900;
            margin-bottom: 18px;
        }

    .status-member-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 0;
        border-bottom: 1px solid #eef0f4;
    }

        .status-member-row:last-child {
            border-bottom: none;
        }

    .status-member-name {
        font-size: 1.05rem;
        font-weight: 800;
        color: #111827;
    }

    .status-toggle-btn {
        min-width: 92px;
        height: 42px;
        border-radius: 999px;
        border: none;
        font-weight: 900;
        font-size: .95rem;
    }

        .status-toggle-btn.online {
            background: #dcfce7;
            color: #16a34a;
        }

        .status-toggle-btn.offline {
            background: #f1f5f9;
            color: #64748b;
        }
}