/* Modern Church Registry UI */
:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --sidebar: #0f172a;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--sidebar);
    color: white;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.main {
    margin-left: 260px;
    padding: 1.5rem 2rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1.25rem;
}

.stat-card {
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

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

.btn-primary:hover {
    background: #1e40af;
}

table {
    width: 100%;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a url('/static/img/bg.png') center / cover no-repeat;
    background-blend-mode: lighten;
    position: relative;
}

.login-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

.login-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 1.2rem auto;
}

@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; }
    .main { margin-left: 0; }
}
