*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    background: #BDBABA;
    color: #1a1a18;
    line-height: 1.6;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-card {
    background: #DEE6E7;
    border: 1px solid #e0dfd8;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
}
.login-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.login-card .subtitle { color: #6b6b66; margin-bottom: 1.5rem; font-size: 13px; }
.login-card label { display: block; font-size: 12px; font-weight: 500; color: #555; margin-bottom: 4px; margin-top: 14px; }
.login-card input { width: 100%; padding: 8px 10px; border: 1px solid #d0d0c8; border-radius: 6px; font-size: 14px; }
.login-card input:focus { outline: none; border-color: #534AB7; box-shadow: 0 0 0 2px #EEEDFE; }

.topnav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    height: 48px;
    background: #DEE6E7;
    border-bottom: 1px solid #e0dfd8;
    font-size: 13px;
}
.nav-brand { font-weight: 600; margin-right: 0.5rem; }
.topnav a { color: #555; text-decoration: none; }
.topnav a:hover, .topnav a.active { color: #1a1a18; font-weight: 500; }
.nav-right { margin-left: auto; display: flex; gap: 1rem; align-items: center; color: #888; }

.container { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.container h2 { font-size: 18px; font-weight: 600; margin-bottom: 1.25rem; }
.container h3 { font-size: 15px; font-weight: 600; margin: 2rem 0 1rem; }

.data-table { width: 100%; border-collapse: collapse; background: #DEE6E7; border: 1px solid #e0dfd8; border-radius: 8px; overflow: hidden; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 500; color: #888; background: #DEE6E7; border-bottom: 1px solid #e8e8e0; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0e8; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #C9D9DF; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 11px; font-weight: 500; }
.badge-admin { background: #EEEDFE; color: #3C3489; }
.badge-ma    { background: #E1F5EE; color: #085041; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #DEE6E7; border: 1px solid #e0dfd8; border-radius: 8px; padding: 1.25rem; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: #555; }
.form-grid input, .form-grid select { padding: 7px 10px; border: 1px solid #d0d0c8; border-radius: 6px; font-size: 14px; }
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: #534AB7; box-shadow: 0 0 0 2px #EEEDFE; }

.btn-primary { grid-column: span 2; padding: 9px; background: #1a1a18; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-primary:hover { opacity: 0.85; }
.btn-danger { padding: 4px 10px; background: none; border: 1px solid #F09595; color: #A32D2D; border-radius: 6px; font-size: 12px; cursor: pointer; }
.btn-danger:hover { background: #FCEBEB; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 1rem; font-size: 13px; background: #E1F5EE; color: #085041; border: 1px solid #9FE1CB; }
.alert-error { background: #FCEBEB; color: #A32D2D; border-color: #F7C1C1; }

.btn-edit { padding: 4px 10px; background: none; border: 1px solid #534AB7; color: #534AB7; border-radius: 6px; font-size: 12px; cursor: pointer; text-decoration: none; }
.btn-edit:hover { background: #EEEDFE; }

.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 1.5rem; }
.stat { background: #DEE6E7; border: 1px solid #e0dfd8; border-radius: 8px; padding: 1rem; }
.stat-label { font-size: 12px; color: #888; margin-bottom: 4px; }
.stat-val { font-size: 22px; font-weight: 600; }

.detail-header { display:flex; align-items:center; gap:1rem; margin-bottom:0.5rem; }
.detail-avatar { width:52px; height:52px; border-radius:50%; background:#EEEDFE; color:#3C3489; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:16px; flex-shrink:0; }
.detail-header h2 { font-size:18px; font-weight:600; margin-bottom:2px; }
.detail-header p { font-size:13px; color:#666; }
.link { color:#534AB7; text-decoration:none; }
.link:hover { text-decoration:underline; }
