:root {
    --primary: #1a56db;
    --primary-hover: #1648b8;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --success: #16a34a;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

nav button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px 12px;
}

nav button.active {
    color: var(--primary);
}

nav button svg {
    width: 24px;
    height: 24px;
}

main {
    padding: 16px 0 80px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

.card h2 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
    font-size: .875rem;
}

.badge {
    display: inline-block;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-admin {
    background: #dbeafe;
    color: var(--primary);
}

.badge-user {
    background: #f1f5f9;
    color: var(--text-muted);
}

.badge-active {
    background: #dcfce7;
    color: var(--success);
}

.badge-blocked {
    background: #fee2e2;
    color: var(--danger);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: .875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .9375rem;
    background: var(--bg);
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-sm {
    padding: 6px 12px;
    font-size: .8125rem;
}

.error-msg {
    background: #fee2e2;
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius);
    font-size: .875rem;
    margin-bottom: 12px;
}

.success-msg {
    background: #dcfce7;
    color: var(--success);
    padding: 12px;
    border-radius: var(--radius);
    font-size: .875rem;
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
