/* the container padding came from the bootstrap sticky-footer example */
main>.container {
    padding: 60px 15px 0;
}

/* Remove bullet points from form non-field errors - only target error lists within alerts */
.alert ul.errorlist,
.alert.alert-danger ul,
.alert.alert-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}



/* set the width of the 'Actions' column in simplepia filter tables */
.simplepia-table-col-actions {
    width: 40%;
}

/* set the width of the fields for each 'Choices' value */
.simplepia-radio-inline label {
    width: 30ch;
}

/* set the width of the fields for each 'Choices' value (for choice fields with more characters) */
.simplepia-radio-inline-wide label {
    width: 50ch;
}

/* remove the drop-down arrow visual for buttons presented as an ellipses */
.simplepia-ellipsis-menu-button::after {
    display: none;
}

.simplepia-navbar-text-size {
    font-size: 1.0rem; /* 1.2 times the root element's font size */
}

/* set the font size for cripsy-bootstrap radio-inline fields for legend.form-label */
legend.form-label {
    font-size: 1.1rem;

}

.simplepia-footer_divider {
    width: 100%;
    height: 20rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

/* set the height of a piabase record 'card' to be the same for all records */
.piabase-list-card-title-height {
    height: 3rem; /* 3 times the root element's font size */
}

/* set the width of the columns in the subscription options table 
    (for the 'Subscription' and 'Options' columns) */
.simplepia-table-col-17 {
    width: 17%;
}

.simplepia-80pct-font-size {
    font-size: 0.8rem; /* 0.8 times the root element's font size */
}

/* modify simple core values from bootstrap light theme to create new theme */

[data-bs-theme="grey"] {
    /* the following values have been modified from the 'light' theme */

    --bs-body-bg: #e5eaf5;
    --bs-body-bg-rgb: 229, 234, 245;

    --bs-secondary-bg: #d5dae5;
    --bs-secondary-bg-rgb: 213, 218, 229;

    --bs-tertiary-bg: #dbe2ec;
    --bs-tertiary-bg-rgb: 219, 226, 236;

    --bs-border-color: #a0a0a0;

    /* end of modified values */


}

/* Help Center Search Styles */
.help-search-container {
    position: sticky;
    top: 0; /* Changed from 80px to 0 - stick to very top */
    z-index: 100;
    background: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add subtle shadow when sticky */
}

.search-highlight {
    background-color: #ffeb3b; /* Light Gold */
    font-weight: 500;
}





.help-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive help search */
@media (max-width: 768px) {
    .help-search-container {
        margin-bottom: 1rem;
    }
    
    .help-item .card-body {
        padding: 1rem 0.75rem;
    }
}

/* Loading state for help search */
.help-search-loading {
    position: relative;
}

.help-search-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.help-item {
    transition: all 0.2s ease;
    scroll-margin-top: 100px; /* Adjust this value based on your search bar height */
}

.help-category-anchor {
    /* Account for: main container padding (60px) + sticky search bar (~40px) */
    scroll-margin-top: 100px;
}