body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255,255,255,0.3);
}

.sidebar-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav .nav-link.active {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    border-right: 3px solid #3498db;
}

.sidebar-nav .nav-link svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

.app-container {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.main-content {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}


.main-content {
    flex: 1;
    transition: all 0.3s ease;
    min-height: 100vh;
    width: 100%;
}


.section {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.section.hidden {
    display: none !important;
}

/* Dashboard Styles */
.dashboard-summary .summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.dashboard-summary .summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.dashboard-summary .summary-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.dashboard-summary .summary-card .card-content h3 {
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-summary .summary-card .card-content p {
    color: #6c757d;
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-summary .summary-card.full-width {
    flex-direction: column;
    text-align: left;
    padding: 2rem;
}

.dashboard-summary .summary-card.full-width h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.navbar-brand {
    font-weight: bold;
}

.btn {
    margin-right: 10px;
}

#members-list, #attendance-list, #transactions-list {
    margin-top: 20px;
}

.member-item, .attendance-item, .transaction-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.member-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.1em;
    color: #333;
}

.member-details {
    color: #666;
}

.card {
    border: none;
    border-radius: 8px;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Attendance Styles */
.attendance-item {
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.attendance-item.present {
    border-left: 4px solid #198754;
    background: #f8fff9;
}

.attendance-item.absent {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
}

.attendance-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.attendance-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.attendance-controls {
    min-width: 150px;
}

.status-text {
    font-weight: 500;
    margin-left: 8px;
}

.attendance-toggle:checked + label .status-text {
    color: #198754;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.bulk-actions {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.attendance-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #6c757d;
}

.summary-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Finance Styles */
.transaction-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.transaction-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.finance-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.finance-metric {
    text-align: center;
    padding: 20px;
}

.finance-metric h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.finance-metric p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.budget-progress {
    height: 20px;
    border-radius: 10px;
}

.budget-over {
    background-color: #dc3545 !important;
}

.budget-warning {
    background-color: #ffc107 !important;
}

.budget-good {
    background-color: #28a745 !important;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.transaction-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.recent-transactions .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.recent-transactions .list-group-item:last-child {
    border-bottom: none;
}

.badge {
    font-size: 0.75em;
}

/* User Management Styles */
.users-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.user-card.inactive {
    opacity: 0.7;
    border-color: #dc3545;
}

.user-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-primary-info {
    flex: 1;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.user-username {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.user-status-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-card-body {
    padding: 1.5rem;
}

.user-contact-info {
    margin-bottom: 1rem;
}

.user-meta-info {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.user-notes {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 3px solid #3498db;
}

.user-notes i {
    color: #3498db;
    margin-right: 0.5rem;
}

/* Role-specific colors */
.role-admin {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.role-data_entry {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.role-finance {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.role-pastor {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .users-grid-container {
        grid-template-columns: 1fr;
    }

    .user-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .user-actions {
        justify-content: center;
    }
}

/* Professional Members Page Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.page-title h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.page-title h2 svg {
    color: #3498db;
    margin-right: 0.75rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.page-actions .btn {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.page-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.search-filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.filter-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-badge {
    background: white;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-badge:hover {
    border-color: #3498db;
    color: #3498db;
}

.filter-badge.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Statistics Dashboard */
.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.total-members .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.active-members .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.baptized-members .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.visitors .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.inactive-members .stat-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.new-members .stat-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: black;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Member Cards */
.members-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.member-primary-info {
    flex: 1;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.member-status-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-visitor {
    background: #fff3cd;
    color: #856404;
}

.status-transferred {
    background: #d1ecf1;
    color: #0c5460;
}

.status-baptized {
    background: #cce5ff;
    color: #004085;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: scale(1.1);
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
    transform: scale(1.1);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.member-card-body {
    padding: 1.5rem;
}

.member-contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.contact-item svg {
    color: #6c757d;
    width: 16px;
}

.member-meta-info {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.meta-item svg {
    color: #adb5bd;
    width: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .search-filter-section {
        padding: 1.5rem;
    }

    .filter-badges {
        justify-content: center;
    }

    .member-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .member-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-title h2 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .member-card-body {
        padding: 1rem;
    }
}

/* Offerings Styles */
.offering-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.offering-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.offering-info {
    flex: 1;
}

/* Welfare Styles */
.welfare-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.welfare-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.welfare-info {
    flex: 1;
}

.welfare-actions {
    min-width: 180px;
    text-align: right;
}

/* Redesigned Login Modal Styles */
.login-modal .modal-backdrop {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(21, 101, 192, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-modal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    max-width: 900px;
}

.login-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Left Side - Welcome Image */
.login-image-side {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/church.jpg') center/cover;
    opacity: 0.1;
}

.login-welcome-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.welcome-logo {
    margin-bottom: 2rem;
}

.welcome-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.welcome-text {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-weight: 500;
}

.welcome-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    max-width: 300px;
    margin: 0 auto;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.feature-item svg {
    color: rgba(255, 255, 255, 0.8);
    width: 20px;
    height: 20px;
}

/* Right Side - Login Form */
.login-form-side {
    background: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.form-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #37474F;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label svg {
    color: #1976D2;
    width: 16px;
    height: 16px;
}

.input-wrapper {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
}

.login-input:focus {
    border-color: #1976D2;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.login-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 2;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #1976D2;
    background: rgba(25, 118, 210, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    position: relative;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #1976D2;
    border-color: #1976D2;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #1976D2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #1565C0;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-error-container {
    margin-bottom: 1.5rem;
    min-height: 20px;
}

.login-error-message {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #C62828;
    font-size: 0.9rem;
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-error-message svg {
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.login-info {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

.login-info svg {
    color: #1976D2;
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* Form Validation Styles */
.login-input:invalid:not(:placeholder-shown) {
    border-color: #f44336;
    background: #ffebee;
}

.login-input:invalid:not(:placeholder-shown) + .input-focus-line {
    background: linear-gradient(90deg, #f44336, #e57373);
}

.login-input:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

.login-input:valid:not(:placeholder-shown) + .input-focus-line {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

/* Accessibility Improvements */
.login-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.btn-login:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading State Enhancements */
.login-form.submitting {
    pointer-events: none;
}

.login-form.submitting .login-input {
    opacity: 0.7;
}

/* Error State Enhancements */
.login-error-message.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success State */
.login-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-modal .modal-dialog {
        margin: 1rem;
        max-width: none;
    }

    .login-header {
        padding: 2.5rem 2rem 2rem;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .login-body {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .login-brand {
        gap: 1rem;
    }

    .login-logo {
        width: 60px;
        height: 60px;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .login-description {
        font-size: 0.9rem;
    }

    .login-body {
        padding: 1.5rem;
    }

    .login-form {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .login-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .login-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 1.5rem 1rem 1rem;
    }

    .login-body {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .login-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
}

.navbar-subtitle {
    font-size: 0.7em;
    opacity: 0.8;
    line-height: 1;
    display: block;
}

.member-item:last-child, .attendance-item:last-child, .transaction-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .section {
        padding: 10px;
    }
}

/* Events Styles */
.events-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-card.birthday {
    border-left: 4px solid #e74c3c;
}

.event-card.church-event {
    border-left: 4px solid #3498db;
}

.event-card.celebration {
    border-left: 4px solid #27ae60;
}

.event-card.anniversary {
    border-left: 4px solid #9b59b6;
}

.event-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.event-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.birthday .event-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.church-event .event-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.celebration .event-icon {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.anniversary .event-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.event-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.event-type-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

.event-card-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.event-location, .event-description, .event-time {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.event-location svg, .event-time svg {
    color: #adb5bd;
    margin-right: 0.5rem;
    width: 14px;
    height: 14px;
}

.event-description {
    line-height: 1.4;
}

.event-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Birthday Cards */
.birthday-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-left: 4px solid #e74c3c;
}

.birthday-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.birthday-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.birthday-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.birthday-info h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.birthday-date, .birthday-age {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.birthday-actions {
    margin-left: auto;
}

.btn-celebrate {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-celebrate:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.birthday-details {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.birthday-details div {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.birthday-details svg {
    color: #adb5bd;
    margin-right: 0.5rem;
    width: 14px;
    height: 14px;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.calendar-header button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-header button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.calendar-grid {
    padding: 1rem;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-header-row div {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}

.calendar-day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.birthday-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e74c3c;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498db;
}

.more-events {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive adjustments for events */
@media (max-width: 768px) {
    .event-card-header, .birthday-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .event-actions, .birthday-actions {
        justify-content: center;
    }

    .calendar-header {
        padding: 1rem;
    }

    .calendar-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .event-card-body, .birthday-details {
        padding: 1rem;
    }

    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
}

/* Additional Finance Styles */
.filter-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls .form-select,
.filter-controls .form-control {
    min-width: 150px;
}

.offering-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.offering-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sidebar Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .app-container {
        margin-left: 0;
    }

    .navbar-brand span {
        display: none;
    }

    .navbar-brand {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
    }

    .sidebar-nav .nav-link span {
        display: inline;
    }

    .sidebar-header h5 {
        font-size: 1rem;
    }
}