header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 0px 0;
    z-index: 1000;
}

footer {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #020f1b;
    z-index: 1000;
}

footer.dark-mode {
    background: #1a0202;
    color: rgb(185, 190, 190);

}

main {
    padding: 80px 0px;
    width: 100%;

    /* Adjust padding to ensure content is not hidden by fixed header/footer */
}

body {
    font-family: Arial, sans-serif;
    margin-top: 30px;
    margin: 50px;
    padding: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.666), rgba(255, 255, 255, 0.666)), url('/static/assistant.png');
    background-repeat: repeat;
    background-size: 300px auto;
    /* Adjust size as needed */
}

card-body.dark-mode {
    background-color: #1e1e1e;
}


tile-card.dark-mode {
    background-color: #1e1e1e;
}

body.dark-mode {
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('/static/assistant.png');
    background-color: #121212;
    color: white;

}

body.dark-mode .table {
    background-color: #1e1e1e;
    color: white;
}

body.dark-mode .table thead {
    background-color: #333;
}

body.dark-mode .btn {
    color: white;
}

/* For older browsers, you might want to add this wrapper to ensure content remains readable */
.content-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    /* Semi-transparent white background */
    position: relative;
    z-index: 1;
}

.center-content {
    text-align: center;
}

h2 {
    text-align: center;
}

form {
    max-width: 400px;
    margin: 0 auto;
}

label,
input {
    display: block;
    width: 50%;
}

input {
    margin-bottom: 0px;
    padding: 8px;
    box-sizing: border-box;
}

button {
    top: 5;
    padding: 0px;
    background-color: #5cb85c;
    color: white;
    border: none;
}


.nav-item {
    margin: 1px;
    transition: transform 0.2s ease;
}

.nav-item .nav-link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1px 5ch;
    color: #212529;
    text-align: center;
    min-width: 100px;
}

.nav-item:hover {
    transform: scale(1.1);
}

.nav-item .nav-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Remove the <br> spacing since we're using margin */
.navbar-nav br {
    display: none;
}

/* Make navbar items stack nicely on mobile */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 5px;
    }

    .nav-item {
        margin: 2px 0;
    }
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar .navbar-nav {
    width: 95%;
    flex-direction: column;
}

.navbar .navbar-nav .nav-item {
    margin-left: 1px;
    margin-right: 1px;
}

.error {
    color: red;
    text-align: center;
}


.tile-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
    border-radius: 20px;
    overflow: hidden;
}

.tile-card img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.tile-card:hover {
    transform: scale(1.05);
}

.tile-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

/* Basic switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider design */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.4s;
    border-radius: 30px;
}

/* Circle inside slider */
.slider:before {
    content: "☀";
    /* Sun symbol */
    position: absolute;
    left: 5px;
    top: 4px;
    font-size: 16px;
    transition: 0.4s;
}

/* Change background and symbol on toggle */
input:checked+.slider {
    background-color: #333;
}

input:checked+.slider:before {
    content: "🌙";
    /* Moon symbol */
    transform: translateX(30px);
}

/* Basic switch styling */
.switch2 {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch2 input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider design */
.slider2 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.4s;
    border-radius: 30px;
}

/* Circle inside slider */
.slider2:before {
    content: "el";
    position: absolute;
    left: 5px;
    top: 4px;
    font-size: 16px;
    transition: 0.4s;
}

input:checked+.slider2 {
    background-color: #ddd;
}

input:checked+.slider2:before {
    content: "en";
    transform: translateX(30px);
}