/* Default (Light Mode) */
body {
    background-color: #ffffff;
    color: #000000;
}

.navbar {
    background-color: #343a40;
}

.navbar-brand img {
    height: 40px; /* Adjust the height as needed */
    width: auto;
}
.footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}
.img-bordered {
    border: 2px solid grey;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.footer-right {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
}
.footer-right img {
    height: 40px; /* Adjust the height as needed */
    width: auto;
    margin-left: 10px;
}
canvas {
    width: 100% !important;
    height: auto !important;
}

.partner-img-size {
    max-width: 100px; /* Adjust the size as needed */
    height: auto;
}

.dropdown-menu {
    right: 0; /* Align to the right of the parent */
    left: auto; /* Prevent default left alignment */
}

.dropdown-menu-end {
    transform-origin: top right; /* Ensure the dropdown expands from the top-right corner */
}

@media (max-width: 768px) {
    .dropdown-menu {
        left: auto; /* Reset left alignment for smaller screens */
        right: 0; /* Align to the right */
    }
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
    
    .navbar {
        background-color: #1e1e1e;
    }

    .footer {
        background-color: #222;
    }

    a {
        color: #64b5f6; /* Light blue for better visibility */
    }

    .btn-info {
        background-color: #007bff;
        border-color: #007bff;
    }

    .btn-primary {
        background-color: #1e88e5;
        border-color: #1e88e5;
    }
    body.dark-mode .table {
        color: #e0e0e0;
        background-color: #1e1e1e;
    }
    
    body.dark-mode .table th,
    body.dark-mode .table td {
        border-color: #333;
    }
    
    body.dark-mode .table-hover tbody tr:hover {
        background-color: #444; 
        color: #ffffff;
    }
    
    body.dark-mode .table thead th {
        background-color: #2c2c2c;
        color: #ffffff;
    }
    
    body.dark-mode .table tbody tr:nth-child(odd) {
        background-color: #2a2a2a;
    }
    
    body.dark-mode .table tbody tr:nth-child(even) {
        background-color: #1e1e1e;
    }
    /* Dark mode styles for code blocks */
    body.dark-mode pre,
    body.dark-mode code {
        background-color: #2d2d2d;
        color: #e0e0e0;
        padding: 10px;
        border-radius: 5px;
        overflow-x: auto;
    }

    body.dark-mode pre code {
        background-color: transparent;
        padding: 0;
        }
        /* Dark mode styles for header list */
    body.dark-mode .list-group-item {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }

    body.dark-mode .list-group-item a {
        color: #e0e0e0;
        text-decoration: none;
    }

    body.dark-mode .list-group-item:hover {
        background-color: #444;
        color: #ffffff;
    }

    body.dark-mode .list-group-item a:hover {
        color: #ffffff;
    }/* Styles for header list items */
    .documentation-page .header-h1 {
        font-weight: bold;
        font-size: 1.2em;
        padding-left: 10px;
    }

    .documentation-page .header-h2 {
        padding-left: 20px;
    }


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

    body.dark-mode .dropdown-menu {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }

    body.dark-mode .dropdown-item {
        color: #e0e0e0;
    }

    body.dark-mode .dropdown-item:hover,
    body.dark-mode .dropdown-item:focus {
        background-color: #444;
        color: #ffffff;
    }
}
