/* General styles */
body {
    background-color: #f8f9fa;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main container */
.container {
    margin-top: 20px;
    flex-grow: 1;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Paragraph styles */
.container p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Header styles */
header {
    background-color: white;
    color: black;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

header a {
    color: black;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: white;
    color: black;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Navbar styles */
.navbar {
    margin-bottom: 10px;
    background-color: white !important;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .navbar-brand {
    font-size: 1.1rem;
    font-weight: normal;
    color: black !important;
    transition: transform 0.2s ease-in-out, font-weight 0.2s ease-in-out;
}

.navbar .navbar-brand img {
    height: 60px;
}

.navbar .navbar-brand:hover {
    font-weight: bold;
    transform: scale(1.1);
}

.navbar .navbar-nav .nav-link {
    color: black !important;
    font-size: 0.9rem;
    margin: 0 5px;
}

.navbar .navbar-nav .nav-link:hover {
    transform: scale(1.1);
}

/* Card styles */
.card {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    color: black;
    font-weight: bold;
}

.card-body {
    font-size: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    background-color: #228B22 !important;
    border-color: #228B22 !important;
    color: white !important;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 4px;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #2E8B57 !important;
    border-color: #2E8B57 !important;
}

/* Sidebar */
.sidebar {
    padding: 20px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
}

/* Banner Image in Sidebar */
.sidebar .banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Advertisement container in Sidebar */
.ad-container {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Links */
a {
    color: black !important;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    transform: scale(1.1);
}

/* Health Score title */
.health-score-title {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* noUiSlider Styles */
.noUi-target {
    width: 100%;
    margin-top: 10px;
}

.noUi-horizontal {
    background: #f1f1f1;
    height: 8px;
    border-radius: 5px;
}

.noUi-handle {
    background-color: #228B22;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: -6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.noUi-connect {
    background-color: #2E8B57;
    border-radius: 5px;
    height: 8px;
}

.noUi-tooltip {
    background-color: #2E8B57;
    color: white;
    font-size: 12px;
    padding: 5px;
    border-radius: 5px;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .navbar-brand {
        margin-bottom: 10px;
    }

    .sidebar {
        padding: 15px;
    }

    .container {
        padding: 15px;
    }

    .card-body {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .navbar .navbar-brand {
        font-size: 1rem;
    }

    .navbar .navbar-nav .nav-link {
        font-size: 0.8rem;
    }

    footer {
        font-size: 0.9rem;
    }

    .ad-container {
        padding: 8px;
    }
}
