/* DOCUMENTATION */

.col-md-3 h1 {
	font-size: 1.2em;
	font-weight: normal;
	text-transform: uppercase;
	padding-bottom: 1em;
	padding-top: 1em;
}

.col-md-3 a {
	color: #333;
}

.col-md-3 a:hover {
	color: #2E9E9D;
	text-decoration: none;
	cursor: pointer;
}


.col-md-9 h1 {
	font-size: 1.8em;
	font-weight: normal;
	padding-bottom: 0.15em;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;  /* Ensure header stays above everything */
    background-color: white;  /* Make sure it has a background */
    height: 80px;  /* Match the padding-top */
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 100%;
    background-color: #fff;
    padding: 1em 2em;
    margin: 1em 0em;
    border-radius: 0.3em;
    border: solid 1px #eee;
    position: relative;
}

.card h2 {
	font-size: 1.6em;
	font-weight: normal;
}

.card h3 {
	font-size: 1.2em;
	font-weight: normal;
}

.card img {
	position: absolute;
    top: 0px;
    right: 0px;
    margin: 1.5em;
}

.versionBranding {
    position: fixed;
    bottom: 40px;
    left: 20px;
    color: #888;
    font-size: 0.8em;
    padding-left: 1rem;
}

.currentDocsVersionBranding {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #888;
    font-size: 0.8em;
    padding-left: 1rem;
}

.sticky-search-container {
    position: sticky;
    top: 0;
    padding: 1rem;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* Ensure proper scrolling for results */
.search-results-container {
    overflow-y: auto;
    max-height: calc(100vh - 200px);  /* Adjust based on your header and search container heights */
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Highlight the search results on the search tab in yellow */
DIV.resultsCard EM {
    background-color: yellow;
}

.closeModalBtn {
    position: absolute;
    top: 5px;
    right: 15px;
}

.cancelBtn {
    color: #252525;
    border-radius: 8px;
    background-color: transparent;
    border: transparent;
}

.okBtn {
    color: white;
    background-color: #63C4D2;
    border-radius: 8px;
    border: transparent;
    margin-left: 8px;
}

.dontShowLabel {
    margin-left: 3px;
}

.index-sidebar h3 {
    margin: 0 !important;
}

.resultsCard {
    border-radius: 1em;
    padding: 1em;
    margin-bottom: 10px;
}

.hapiSearchResult {
   background-color: antiqueWhite;
}

.cdrSearchResult {
   background-color: #d5eff3;
}

.hapiCheckbox {
    width: auto;
}

.showHapiResultsLabel {
    width: auto;
    margin-bottom: 0.2em;
    font-weight: lighter;
    padding-left: 5px;
}

.showHapiResultsGroup {
    padding: 0.2em 1rem 1em 1rem;
}

/* Add resizer styles */
.resizer {
    width: 8px;
    background: #0000001a;
    cursor: col-resize;
    margin: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    flex: 0 0 auto;
}

.resizer:hover {
    background: #0000002a;
}

/* Container styles */
.resize-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
}

/* Adjust leftbar styles */
.col-md-3 {
    min-width: 200px;
    max-width: 500px;
    width: 300px;
    /* default width */
    flex-shrink: 0;
}

/* Adjust main content area */
#tocscroll {
    flex: 1;
    min-width: 200px;
    padding: 0 270px 0 20px;
    /* Right padding accounts for rightNavContainer */
}

/* Ensure rightNavContainer stays in place */
.rightNavContainer {
    position: fixed;
    right: 20px;
    top: 80px;
    width: 250px;
    z-index: 100;
}

/* Add new styles to prevent double scrollbars */
.index-sidebar {
    overflow-y: hidden;  /* Remove scrollbar from side-nav */
    height: 100%;
}

#leftTocView {
    padding-left: 1rem;
    height: calc(100vh - 240px);
    overflow-y: auto;
}

#leftTocSearchResults {
    padding-left: 1rem;
    height: calc(100vh - 240px);
    overflow-y: auto;
}

/* Add new tab styles */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #f8f9fa;
}

.nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}

.nav-tabs .nav-link {
    display: block;
    padding: 1rem;
    border: none;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.nav-tabs .nav-link.active {
    color: #2E9E9D;
    background-color: #fff;
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2E9E9D;
}

.nav-tabs .nav-link:hover:not(.active) {
    color: #2E9E9D;
    background-color: #f1f1f1;
}

.tab-content {
    display: none;
    background-color: #fff;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.tab-content.active {
    display: block;
}
