/**
 * Custom CSS for OLA Parish Management System
 */

/* ================= GLOBAL STYLES & VARIABLES ================= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    
    /* Church colors */
    --church-blue: #0d47a1;
    --church-blue-light: #1e5abf;
    --church-blue-dark: #0a2e6e;
    --church-white: #ffffff;
    --church-gray-light: #f8f9fc;
    --church-accent: #e6b800;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* ================= HEADER & NAVIGATION STYLES ================= */

/* Modern Navbar */
.modern-navbar {
    background: linear-gradient(135deg, var(--church-blue) 0%, var(--church-blue-dark) 100%);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.3);
    transition: var(--transition-smooth);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modern-navbar.scrolled {
    padding: 0.4rem 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.98), rgba(10, 46, 110, 0.98));
    backdrop-filter: blur(10px);
}

/* Logo / Brand */
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--church-white) !important;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-brand i {
    color: var(--church-accent);
    margin-right: 10px;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover i {
    transform: rotate(15deg) scale(1.1);
    color: #ffd700;
}

.brand-text {
    background: linear-gradient(135deg, #fff, var(--church-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navigation Links */
.navbar-nav {
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    color: var(--church-accent);
}

/* Hover effect for nav links */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--church-accent);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover i {
    transform: translateY(-2px);
    color: var(--church-accent);
}

.nav-link:hover::before {
    width: 70%;
}

/* Active nav link */
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-link.active i {
    color: var(--church-accent);
}

.nav-link.active::before {
    width: 70%;
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--church-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFade 0.3s ease;
    border: 1px solid rgba(13, 71, 161, 0.1);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #2c3e50;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--church-blue);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(230, 184, 0, 0.05));
    color: var(--church-blue);
    transform: translateX(5px);
}

.dropdown-item:hover i {
    transform: scale(1.2);
    color: var(--church-accent);
}

.dropdown-divider {
    border-color: rgba(13, 71, 161, 0.1);
    margin: 0.5rem 0;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--church-accent), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--church-blue-dark);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(230, 184, 0, 0.5);
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Search Bar */
.search-form {
    position: relative;
    margin-right: 1rem;
}

.search-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: #fff;
    width: 250px;
    transition: var(--transition-smooth);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--church-accent);
    outline: none;
    width: 300px;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.3);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Mobile Toggle */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

.navbar-toggler:hover {
    border-color: var(--church-accent);
    transform: rotate(90deg);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Notification Badge */
.notification-badge {
    position: relative;
    display: inline-block;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--church-accent);
    color: var(--church-blue-dark);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: linear-gradient(135deg, #f8f9fc, #eef2f7);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--church-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-item a:hover {
    color: var(--church-accent);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ================= SIDEBAR STYLES ================= */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    border-right: 3px solid var(--primary-color);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ================= CARD STYLES ================= */
.card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= DASHBOARD STATS ================= */
.stat-card {
    border-radius: 10px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 600;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ================= BUSINESS DIRECTORY GRID ================= */
.business-card {
    height: 100%;
    transition: transform 0.2s;
}

.business-card:hover {
    transform: translateY(-5px);
}

.business-card .business-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.business-card .business-actions {
    display: flex;
    gap: 0.5rem;
}

/* ================= MARKETPLACE PRODUCT GRID ================= */
.product-card {
    height: 100%;
}

.product-card .product-image {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-card .contact-price {
    color: var(--warning-color);
    font-weight: 500;
}

/* ================= TABLES ================= */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ================= FORMS ================= */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ================= BUTTONS ================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* ================= PAGINATION ================= */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ================= GHANA FLAG BADGE ================= */
.ghana-flag-badge {
    background: linear-gradient(135deg, #cf0921 0%, #cf0921 33%, #fcd116 33%, #fcd116 66%, #006b3f 66%, #006b3f 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ================= LOADING SPINNER ================= */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* ================= CHURCH FOOTER WITH BLUE & WHITE (IMPROVED VISIBILITY) ================= */
.church-footer {
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
    color: #2c3e50;
    position: relative;
    padding-top: 3rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(13, 71, 161, 0.15);
    box-shadow: 0 -10px 30px rgba(13, 71, 161, 0.08);
}

/* Top Wave Decoration */
.footer-wave-top {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

.footer-wave-top svg {
    width: 100%;
    height: 100%;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-brand i {
    font-size: 2.5rem;
    color: var(--church-blue);
    background: linear-gradient(135deg, var(--church-blue), var(--church-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.footer-brand:hover i {
    transform: rotate(15deg) scale(1.1);
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--church-blue), var(--church-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.footer-about {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

/* ===== IMPROVED SOCIAL LINKS - CLEARER VISIBILITY ===== */
.social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    color: var(--church-blue);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid rgba(13, 71, 161, 0.2);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.05);
}

.social-link i {
    font-size: 1.2rem;
    color: var(--church-blue);
    transition: all 0.3s ease;
}

.social-link .social-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

/* Brand colors on hover - more visible */
.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 161, 242, 0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.social-link:hover i,
.social-link:hover .social-name {
    color: white;
}

/* App Buttons */
.app-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.25);
    border-radius: 10px;
    text-decoration: none;
    color: var(--church-blue);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.05);
}

.app-btn i {
    font-size: 1.5rem;
    color: var(--church-blue);
}

.app-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-btn .btn-text small {
    font-size: 0.6rem;
    opacity: 0.7;
    color: #64748b;
}

.app-btn .btn-text span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.app-btn:hover {
    background: var(--church-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.25);
    border-color: transparent;
}

.app-btn:hover i,
.app-btn:hover .btn-text small,
.app-btn:hover .btn-text span {
    color: white;
}

/* ===== IMPROVED FOOTER LINKS - CLEARER VISIBILITY ===== */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--church-blue);
    position: relative;
    padding-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--church-blue), var(--church-blue-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.footer-title:hover::after {
    width: 80px;
}

/* Footer Links - IMPROVED VISIBILITY */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--church-blue);
    transition: all 0.3s ease;
    background: rgba(13, 71, 161, 0.1);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer-links a:hover {
    color: var(--church-blue);
    transform: translateX(5px);
    border-bottom-color: var(--church-blue);
}

.footer-links a:hover i {
    background: var(--church-blue);
    color: white;
    transform: rotate(90deg);
}

/* Contact Cards - IMPROVED */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.08);
    border: 1px solid rgba(13, 71, 161, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(13, 71, 161, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.15);
    border-color: rgba(13, 71, 161, 0.3);
    background: #f8fbff;
}

.contact-card:hover::after {
    width: 300px;
    height: 300px;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card .card-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 71, 161, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--church-blue);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: var(--church-blue);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.contact-card .card-content {
    display: flex;
    flex-direction: column;
}

.contact-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.contact-card .value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* Newsletter Box */
.newsletter-box {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.08);
    border: 1px solid rgba(13, 71, 161, 0.15);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.newsletter-box:hover {
    box-shadow: 0 12px 30px rgba(13, 71, 161, 0.15);
    border-color: rgba(13, 71, 161, 0.3);
    transform: translateY(-2px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--church-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-title i {
    color: var(--church-blue);
    font-size: 1.2rem;
}

.newsletter-form .input-group {
    background: white;
    border-radius: 50px;
    padding: 0.3rem;
    border: 1px solid rgba(13, 71, 161, 0.25);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.newsletter-form .input-group:hover {
    border-color: rgba(13, 71, 161, 0.5);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.1);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--church-blue);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #2c3e50;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.btn-subscribe {
    width: 45px;
    height: 45px;
    background: var(--church-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-subscribe:hover {
    background: var(--church-blue-light);
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.4);
}

.btn-subscribe i {
    font-size: 1.1rem;
}

.form-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 2px solid rgba(13, 71, 161, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.copyright {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-bottom-links li {
    display: inline-block;
}

.footer-bottom-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.footer-bottom-links a:hover {
    color: var(--church-blue);
    border-bottom-color: var(--church-blue);
}

.footer-bottom-links .dot {
    width: 4px;
    height: 4px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
}

/* ================= BACK TO TOP BUTTON ================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--church-blue);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(13, 71, 161, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    border: 2px solid white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--church-blue-light);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.5);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .search-form {
        margin: 1rem 0;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .user-menu {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        box-shadow: none;
    }
    
    .stat-card {
        margin-bottom: 0.5rem;
    }
    
    .business-card .business-logo {
        width: 60px;
        height: 60px;
    }
    
    /* Footer responsive */
    .footer-title::after {
        left: 0;
        transform: none;
    }
    
    .footer-title {
        text-align: left;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-links a {
        justify-content: flex-start;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        padding: 0.4rem 0.8rem;
    }
    
    .social-link .social-name {
        display: inline;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .contact-card {
        padding: 0.6rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
}

/* ================= PRINT STYLES ================= */
@media print {
    .sidebar,
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
}