
/* IASSH Member Management */

:root {
    --iassh-primary: #164b82;
    --iassh-dark: #10365e;
    --iassh-accent: #1686a7;
    --iassh-bg: #f4f7fb;
    --iassh-text: #26384a;
    --iassh-muted: #718096;
    --iassh-border: #e5ebf2;
    --iassh-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 25px;
    background: var(--iassh-bg);
    color: var(--iassh-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.member-container {
    max-width: 1500px;
    margin: 0 auto;
}

/* Page heading */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.breadcrumb {
    color: var(--iassh-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.page-header h1 {
    color: var(--iassh-dark);
    font-size: 27px;
    margin: 0 0 7px;
    font-weight: 700;
}

.page-header p {
    color: var(--iassh-muted);
    margin: 0;
}

/* Buttons */

.btn {
    text-decoration: none;
    display: inline-block;
    padding: 11px 19px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary {
    color: #fff;
    background: var(--iassh-primary);
}

.btn-primary:hover {
    background: var(--iassh-dark);
}

/* Statistics */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 23px;
}

.stat-card {
    background: var(--iassh-white);
    padding: 20px 23px;
    border: 1px solid var(--iassh-border);
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(20, 55, 90, 0.035);
}

.stat-card span {
    display: block;
    color: var(--iassh-muted);
    margin-bottom: 9px;
    font-size: 13px;
}

.stat-card strong {
    display: block;
    color: var(--iassh-primary);
    font-size: 27px;
}

/* Main card */

.member-card {
    background: var(--iassh-white);
    border: 1px solid var(--iassh-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20, 55, 90, 0.04);
}

.member-toolbar {
    padding: 22px 23px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.member-toolbar h2 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--iassh-dark);
}

.member-toolbar p {
    margin: 0;
    font-size: 13px;
    color: var(--iassh-muted);
}

/* Search */

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--iassh-border);
    border-radius: 6px;
    overflow: hidden;
    min-width: 350px;
    background: #fff;
}

.search-icon {
    font-size: 22px;
    color: var(--iassh-muted);
    padding-left: 12px;
}

.search-form input {
    border: 0;
    outline: 0;
    padding: 12px;
    flex: 1;
    min-width: 100px;
    font-size: 13px;
    color: var(--iassh-text);
}

.search-form button {
    border: 0;
    padding: 12px 17px;
    color: white;
    background: var(--iassh-primary);
    cursor: pointer;
    font-weight: 600;
}

.search-form button:hover {
    background: var(--iassh-dark);
}

.clear-search {
    padding: 10px;
    color: var(--iassh-primary);
    text-decoration: none;
}

.search-hint {
    padding: 0 23px 18px;
    font-size: 12px;
    color: var(--iassh-muted);
}

/* Table */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 950px;
}

.member-table thead {
    background: #f1f5fa;
}

.member-table th {
    color: #536b82;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 15px 17px;
    border-top: 1px solid var(--iassh-border);
    border-bottom: 1px solid var(--iassh-border);
    white-space: nowrap;
}

.member-table td {
    padding: 16px 17px;
    border-bottom: 1px solid var(--iassh-border);
    vertical-align: middle;
}

.member-table tbody tr:hover {
    background: #f8fbff;
}

/* Member information */

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
}

.member-photo {
    width: 47px;
    height: 47px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e6edf5;
    flex-shrink: 0;
    background: #edf2f7;
}

.member-info strong {
    display: block;
    font-size: 13px;
    color: var(--iassh-dark);
    margin-bottom: 4px;
}

.member-info small {
    display: block;
    color: var(--iassh-muted);
    font-size: 11px;
    margin-top: 3px;
}

.member-id {
    color: var(--iassh-primary);
    font-weight: 600;
    font-size: 12px;
}

.contact-info span {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.contact-info small {
    display: block;
    color: var(--iassh-muted);
    font-size: 11px;
}

/* Status */

.status {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-approved {
    background: #e5f6ed;
    color: #18834c;
}

.status-pending {
    background: #fff4dc;
    color: #a66b00;
}

.status-rejected {
    background: #fdeaea;
    color: #c03939;
}

/* Action buttons */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 190px;
}

.action-btn {
    text-decoration: none;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.2s;
}

.view-btn {
    color: #1769a7;
    background: #eaf4fc;
}

.edit-btn {
    color: #9a7000;
    background: #fff5dc;
}

.delete-btn {
    color: #bd3838;
    background: #fdecec;
}

.approve-btn {
    color: #16834d;
    background: #e5f6ed;
}

.action-btn:hover {
    filter: brightness(.94);
}

/* Empty state */

.no-records {
    text-align: center;
    padding: 55px 20px !important;
    color: var(--iassh-muted);
}

.no-records strong {
    display: block;
    color: var(--iassh-dark);
    font-size: 16px;
    margin: 10px 0 5px;
}

.no-records p {
    margin: 0;
}

.empty-icon {
    font-size: 30px;
}

/* Footer */

.table-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 22px;
    color: var(--iassh-muted);
    font-size: 12px;
    background: #fff;
}

/* Responsive */

@media(max-width: 900px) {
    .member-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-form {
        width: 100%;
        min-width: 0;
    }
}

@media(max-width: 600px) {
    body {
        padding: 12px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px 18px;
    }

    .member-toolbar {
        padding: 18px 15px 12px;
    }

    .search-hint {
        padding: 0 15px 15px;
    }

    .table-footer {
        padding: 14px;
        gap: 10px;
        flex-direction: column;
    }
}
