:root,
[data-bs-theme="light"] {
    --primary-bg: #ffffff;
    --primary-text: #212121;

    --secondary-bg: #dcedc8;

    --navbar-bg: #ffffff;
    --navbar-text: #689f38;
    --navbar-hover: #8bc34a;

    --hero-bg: linear-gradient(90deg, #dcedc8 60%, #ffffff 100%);

    --btn-bg: #689f38;
    --btn-text: #ffffff;
    --btn-active: #cddc39;

    --divider: #BDBDBD; 
    --desc-text: #757575; 
    --card-border: #BDBDBD; 
}

[data-bs-theme="dark"] {
    --primary-bg: #181a1b;
    --primary-text: #f1f1f1;

    --secondary-bg: #263238;

    --navbar-bg: #23272b;
    --navbar-text: #aed581;
    --navbar-hover: #dcedc8;

    --hero-bg: linear-gradient(90deg, #263238 60%, #181a1b 100%);

    --btn-bg: #8bc34a;
    --btn-text: #23272b;
    --btn-active: #a4c639; 

    --divider: #4a4d4e;
    --desc-text: #9ea7aa;
    --card-border: #374046;
}


body {
    background: var(--primary-bg);
    color: var(--primary-text);
}

/* Modal styles */
.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1045;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    background-color: var(--primary-bg);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    outline: 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
    vertical-align: middle;
    position: relative;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .btn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        height: auto;
        min-height: 38px;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
        min-height: 32px;
    }

        .d-flex > .btn, .d-flex > form > .btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .card {
        overflow: hidden;
    }
    
    .card-header, .card-footer {
        padding: 0.75rem;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }
}

.carousel-item img {
    height: 85vh;
    object-fit: cover;
}

@media (max-width: 992px) {
    .carousel-item img {
        height: 45vh;
    }
}

footer {
    background-color: var(--secondary-bg);
    color: var(--navbar-text);
    border-top: 1px solid var(--divider);
    font-weight: 500;
}

footer p {
    margin-bottom: 0;
}

/* Sticky footer settings */
html {
    position: relative;
    min-height: 100%;
}
