/* Church MIS - Main Stylesheet */
:root {
    --primary: var(--hero-gradient-from, #1a237e);
    --primary-light: var(--hero-gradient-to, #283593);
    --secondary: #ff6f00;
    --accent: #00897b;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Navbar */
.navbar-brand span {
    transition: color 0.3s;
}
.navbar .nav-link {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary) !important;
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, white);
}

/* Cards */
.hover-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Section Headers */
.section-header span {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.section-header span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: calc(100vh - 60px);
    background: #1a237e;
    width: 260px;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    transition: width 0.3s;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: #fff;
}
.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}
.admin-sidebar .sidebar-section {
    padding: 15px 20px 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}

/* Admin Content */
.admin-content {
    margin-left: 260px;
    padding: 20px 30px;
    min-height: calc(100vh - 60px);
    background: #f0f2f5;
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Tables */
.table-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.table-card .card-header {
    background: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 0;
        overflow: hidden;
    }
    .admin-sidebar.show {
        width: 260px;
    }
    .admin-content {
        margin-left: 0;
    }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}
.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26,35,126,0.15);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.gallery-item img {
    transition: transform 0.5s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Utilities */
.bg-gradient-primary {
    background: var(--hero-gradient, linear-gradient(135deg, var(--primary), var(--primary-light)));
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
