* { box-sizing: border-box; }

.member-card {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f4f6f9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  	padding: 15px;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #1f2937;
    color: #ffffff;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-brand {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 14px;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-section-title {
    width: 100%;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-section-title span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-section-title:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px 11px 36px;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    margin: 2px 0;
}

.menu-link i {
    width: 20px;
    text-align: center;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.menu-link.active {
    background: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}

.menu-section-link {
    width: 100%;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.menu-section-link span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-section-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.menu-section-link.active {
    background: #0d6efd;
    color: #ffffff;
}

.admin-main {
    margin-left: 280px;
    padding: 30px;
}

@media (max-width: 991.98px) {
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar-nav {
        padding: 10px;
    }

    .menu-link {
        padding-left: 34px;
    }
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container.top {
    align-items: flex-start;
}

.card {
    width: 100%;
    
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.card.wide { max-width: 1100px; }

h1 { margin-top: 0; font-size: 28px; }

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: bold;
}

label.checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: normal;
}

label.checkbox input { width: auto; }

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd2d8;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

button, .button-link {
    display: inline-block;
    width: auto;
    margin-top: 20px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #1f6feb;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

button { width: 100%; }
button:hover, .button-link:hover { background: #1559bd; }
.button-link.secondary { background: #6b7280; }

a { color: #1f6feb; }

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert.error { background: #ffe8e8; color: #8a1f1f; }
.alert.success { background: #e8f7ed; color: #1d6b34; }
.alert.info { background: #e8f0ff; color: #173b78; }

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

th { background: #f8fafc; }
code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 5px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.sidebar-user-role {
    font-size: 12px;
    opacity: 0.75;
}

.sidebar-user-logout {
    color: #fff;
    opacity: 0.75;
    text-decoration: none;
}

.sidebar-user-logout:hover {
    opacity: 1;
    color: #fff;
}


.member-layout {
            display: flex;
            gap: 1rem;
        }

        .member-left {
            flex: 0 0 70%;
        }

        .member-right {
            flex: 0 0 30%;
        }

        @media (max-width: 991px) {
            .member-layout {
                flex-direction: column;
            }

            .member-left,
            .member-right {
                flex: 0 0 100%;
            }
        }