.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.2;
}

    /* Modern Gradient Theme */
     :root {
        --primary-color: #2A5C82;
        --secondary-color: #E8B44D;
        --accent-gradient: linear-gradient(135deg, #2A5C82 0%, #3A769C 100%);
        --overlay-gradient: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
        --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-parallax {
        height: 100vh;
        min-height: 600px;
        position: relative;
        overflow: hidden;
        background-color: var(--primary-color); /* Fallback */
    }

    .parallax-bg {

        background-attachment: fixed;
        z-index: -1;
        transform: translateZ(0);
        will-change: transform;
    }
   .overlay {
        background: var(--overlay-gradient);
        z-index: 0;
    }

    .container {
        z-index: 2;
    }

    h1 {
        text-shadow: var(--text-shadow);
        letter-spacing: 1px;
        margin-bottom: 1rem !important;
    }

    .lead {
        text-shadow: var(--text-shadow);
        font-weight: 300;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-primary {
        background: var(--secondary-color);
        border: none;
        color: #333;
        font-weight: 600;
        border-radius: 50px;
        transition: all 0.3s ease;
        text-shadow: none;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
        background: #f5c23d;
    }


    .cta-btn {
        padding: 1rem 2rem;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }

    .cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    .stats-grid {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        padding: 4rem 0;
    }

    .stat-item {
        background: white;
        border-radius: 1rem;
        padding: 2rem;
        box-shadow: 0 5px 30px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .stat-item:hover {
        transform: translateY(-10px);
    }

    .sermon-card {
        border-radius: 1.5rem;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .sermon-card:hover {
        transform: scale(1.03);
    }
    #xontact{
        padding: 60px 0;
        background: #f9f9f9;
    }
    .dark-mode-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
    /* Dark Mode Styles */
    .dark-mode {
        background: #121212;
        color: #ccc;
    }
    .dark-mode nav, .dark-mode footer{
        background: #1f1f1f;
    }
    .dark-mode , .navbar-brand, .dark-mode .nav-link {
        color: #ccc;
    }
    #chatbot-btn {
        position: fixed;
        bottom: 20px;
        right: 50px;
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 18px;
    }

    #chat-box {
        position: fixed;
        bottom: 70px;
        right: 50px;
        width: 300px;
        background: white;
        border: 1px solid #ccc;
        display: none;
        padding: 10px;
        box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    }
     /* Custom Loader Styles */
     .section-loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-top: 4px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 1000;
    }

    .dark-loader {
        border-color: rgba(0, 0, 0, 0.3);
        border-top-color: #007bff;
    }

    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* Enhanced Card Hover Effects */
    .card-hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    }

    /* Image Loading Effect */
    .img-loading {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite linear;
    }

    @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }
        
        .stat-item {
            margin-bottom: 2rem;
        }
    }
     /* Animations */
    .pulse-animation {
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }

    .bounce-animation {
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-10px); }
        60% { transform: translateY(-5px); }
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        h1 { font-size: 2.5rem; }
        .lead { font-size: 1.2rem; }
        .parallax-bg { background-attachment: scroll; }
    }

    /* Custom CSS for ACT Management System */

/* Sidebar styling */
#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
    width: 15rem;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

/* Submenu styling */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.list-group-item.active + .submenu {
    max-height: 500px;
}

/* Card styling */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Table styling */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    border-bottom: none;
    background-color: #f8f9fc;
}

/* Button styling */
.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Progress bar styling */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Custom colors */
.bg-primary {
    background-color: #4e73df !important;
}

.text-primary {
    color: #4e73df !important;
}

/* Select2 customization */
.select2-container--bootstrap-5 .select2-selection {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

/* Form validation */
.is-invalid {
    border-color: #e74a3b;
}

.invalid-feedback {
    color: #e74a3b;
    font-size: 0.875rem;
}
