/* Church Management System - Main Styles */
:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --dark: #5a5c69;
    --light: #f8f9fc;
    --sidebar-bg: #1e3a5f;
    --sidebar-width: 250px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    background: var(--light);
    color: var(--dark);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg), #152238);
    z-index: 1000;
    overflow-y: auto;
    transition: 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.sidebar-header .logo i { font-size: 1.75rem; color: #fff; }
.sidebar-header h5 { color: #fff; font-weight: 600; margin-bottom: 0.25rem; }
.sidebar-header small { color: rgba(255,255,255,0.6); }

.sidebar-nav { list-style: none; padding: 1rem 0; }
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: var(--primary);
}

.sidebar-nav .nav-link i { width: 24px; margin-right: 0.75rem; }

.submenu {
    list-style: none;
    background: rgba(0,0,0,0.15);
    padding: 0;
}

.submenu a {
    display: block;
    padding: 0.5rem 1.25rem 0.5rem 3.25rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
}

.submenu a:hover, .submenu a.active { color: #fff; background: rgba(255,255,255,0.05); }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    background: #fff;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0.15rem 1.75rem rgba(58,59,69,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content { padding: 1.5rem; }

/* Cards */
.card {
    background: #fff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem rgba(58,59,69,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
}

.card-header h5 { color: var(--primary); font-weight: 600; margin: 0; }

.stat-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-3px); }
.stat-card.primary { border-left-color: var(--primary); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.info { border-left-color: var(--info); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }

.stat-card .value { font-size: 1.75rem; font-weight: 700; }
.stat-card .label { font-size: 0.75rem; text-transform: uppercase; color: var(--dark); }

/* Tables */
.table thead th {
    background: var(--light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid #e3e6f0;
}

/* Forms */
.form-label { font-weight: 500; margin-bottom: 0.5rem; }
.form-control, .form-select {
    border: 1px solid #d1d3e2;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78,115,223,0.25);
}

/* Buttons */
.btn { font-weight: 500; padding: 0.5rem 1rem; border-radius: 0.375rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sidebar-bg), #152238);
}

.login-card {
    max-width: 400px;
    width: 100%;
    margin: 1rem;
}

.login-card .card { border-radius: 1rem; }

.login-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.login-header .logo i { font-size: 2.5rem; color: #fff; }

/* Member Photo */
.member-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.member-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Birthday */
.birthday-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar { margin-left: -250px; }
    .sidebar.active { margin-left: 0; }
    .main-content { margin-left: 0; }
}

/* Print */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin: 0; }
}
