html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 160px; /* Set this to the height of your sticky navbar */
}

thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

#features-section {
    scroll-margin-top: 160px;
}

.table-container {
    height: 35rem;
    overflow-y: auto;
}

table button {
    padding: 0.1rem 0.2rem; 
    border-width: 0;
    font-size: smaller;
    width: 5rem;
}

th, td {
    margin: 0 !important;
    padding: 0.1rem !important;
}

.wrap-column {
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

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

.htmx-indicator{
    opacity:0;
    transition: opacity 500ms ease-in;
}
.htmx-request .htmx-indicator{
    opacity:1;
}
.htmx-request.htmx-indicator{
    opacity:1;
}

button img {
    width: 25px;
}

a img {
    width: 25px;
}

.layout {
    display: flex;
    flex-direction: row;
}

#sidebar {
    padding: 2rem;
}

#sidebar nav ul {
    list-style: none;
    padding: 0;
}

#sidebar nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sidebar nav ul li a img {
    margin-left: 10px;
    width: 25px;
    height: auto;
}

#main-content {
    flex: 1;
    padding: 1rem;
}

#info-tab {
    display: none;
}

.pricing-list {
    padding-left: 0 !important;
    margin: 0;
}

.pricing-list li {
    position: relative;
    padding-left: 30px; /* Adjust padding to fit the SVG icon */
    list-style-type: none !important;
}

.checked::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px; 
    height: 20px;
    background-image: url('/static/svg/checked-box.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.unchecked::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-image: url('/static/svg/unchecked-box.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.scroll-offset {
    scroll-margin-top: 260px;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column; /* Stack sidebar and content vertically */
    }
    #sidebar {
        width: 100%; /* Full width for sidebar */
    }
    #sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start; /* Distribute space evenly */
    }
    #info-tab {
        display: inline;
    }
    #info-tabs {
        display: none;
    }

}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    display: none;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
    opacity: 1; 
}

#explore-links li:hover {
    background-color: var(--pico-color-azure-850);
    border-radius: 0.5rem;
}

.btn-danger {
    background-color: var(--pico-color-red-500);
    border: none;
}

.btn-danger:hover {
    background-color: var(--pico-color-red-400);
    color: var(--pico-color-red-800);
}

.btn-success {
    background-color: var(--pico-color-green-500) !important;
    border: none !important;
}

.btn-success:hover {
    background-color: var(--pico-color-green-400) !important;
    /* text  */
    color: var(--pico-color-green-800) !important;
}
