/*
Theme Name: Illinois Urban Manual
Author: Justin Smith
Description: A modern and mobile friendly way to interact with the Illinois Urban Manual.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: illinoisurbanmanual
Version: 0.1
*/


/* Main template */
html {
  position: relative;
  min-height: 100%;
}
body {
    background-color: #EEEEEE;
    margin-bottom: 120px;
}
a {
    color: #1d1dff;
    text-decoration: none;
}
h1, h2, h3, h4 {
    color: #007275;
}
.card-title {
    color: #007275;
}


/* Navigation */
.navbar {
    background-color: #01558F;
    padding-left: 16px;
    padding-right: 16px;
}
a.nav-link {
    color: white;
}
.navbar-brand {
    margin-left: -12px;
}
#ium-search-container {
    position: relative;
    display: inline-block;
}
.search-results .list-group-item {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 12px;
}
@media screen and (min-width: 992px) {
    .search-results {
        position: absolute;
        z-index: 999;
        min-width: 100%;
    }
}
.search-results a:hover {
    background-color: #EEEEEE;
}
.search-results h6 {
    color: #007275;
}
.search-results a {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */
    display: block;
}
.search-results > ul > li {
    border: 1px solid #00aeb4;
}
#menu-quick-links-1  > li {
    padding-top: 8px;
    padding-bottom: 8px;
    margin-right: 48px;
}
#menu-quick-links-1 > li  > a {
    color: #212529;
}
#quick-links-mobile-container > a {
    padding-top: 8px;
    padding-bottom: 8px;
}
#sidebar {
    background-color: #CED1D8;
    max-width: 275px;
    min-height: calc(100vh - 240px);
}
#sidebar div ul li a.nav-link{
    /* padding-left: 0px; */
    padding-right: 0px;
}
#sidebar-header {
    color: #081a25;
    margin-left: 16px;
}
#menu-quick-links > li > a {
    color: #12296c!important;
}
#menu-quick-links > li > a:hover {
    color: #3c64de!important;
}
#menu-quick-links > li.active > a {
    background-color: #01558F;
    color: white!important;
}
.ium-breadcrumbs > ol {
    background-color: #EEEEEE;
}
.ium-breadcrumbs li.active {
    color: #42484c;
}


/* Front Page */
#announcements-card, #mailing-list-card, #manual-card, #mobile-quick-links-card {
    border: 1px solid #CED1D8;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.announcement-title-home {
    color: black;
}
#manual-card .list-group > .list-group-item {
    background-color: #EEEEEE;
}
#manual-card .list-group > .list-group-item:hover {
    background-color: #d6d8db;
}
.carousel-item {
    height: 385px;
}
#mailing-list-helper-text {
    max-width: 525px;
}
.mobile-quick-link {
    color: #12296c!important;
    text-decoration: underline;
}


/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 120px;
  background-color: #01558F;
}
#container-row {
    min-height: calc(100vh - 120px);
}
#footer-email-link {
    color: white;
}


/* File List */
#file-table-header-divider {
    border-top-color: #01558F;
}
* {
    /* scroll-margin-top: 56px; */
    scroll-margin-top: 80px;
}
.letter-index-pill {
    background-color: #01558F!important;
}


/* Contact Us */
.asterisk {
    color: #e85c41;
    font-size: 150%;
    font-weight: normal;
    position: relative;
    top: 5px;
}
#form-response {
    color: #007275;
}

/* Home Page Vistor Counter */
#strcpv-page-counter {
    text-align: left;
    display: flex;
    align-items: center;
}
#strcpv-page-counter p {
    display: inline-block !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 5px !important;
    padding-right: 1px !important;
    letter-spacing: 5px !important;
    background-color: #d8d8d8 !important;
    color: #333333 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}
.fa-eye {
    vertical-align: middle;
    line-height: 1.5;
}


/* Single Page */
/* .single-content h1,h2,h3,h4,h5,h6 {
    color: black; /* make sure any headers inside of single page content is default, not green */
} */


/* Bootstrap styles, make buttons web accessible */
/* Move to a different stylesheet? */
.btn-primary {
    color: #fff!important;
    background-color: #01558F!important;
    border-color: #01558F!important;
}
.btn-outline-primary {
    color: #01558F!important;
    background-color: transparent;
    background-image: none;
    border-color: #01558F!important;
}
.btn-outline-primary:hover {
    color: #fff!important;
    background-color: #01558F!important;
    border-color: #01558F!important;
}
.btn-info {
    color: #fff!important;
    background-color: #0c5c68!important;
    border-color: #0c5c68!important;
}
.btn-outline-info {
    color: #0c5c68;
    background-color: transparent;
    background-image: none;
    border-color: #0c5c68;
}

/* Fix for sticky sidebar and navigation */
#sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1020; /* Lower than sticky top nav */
    overflow-y: auto; /* Allow scrolling for tall sidebar content */
}

/* Fixed navigation positioning */
.sticky-top {
    z-index: 1030; /* Higher than sidebar */
    background-color: #01558F; /* Match navbar background */
    width: 100%;
}

/* Begin section for practice selection guide css */
/* Control table overflow */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

/* Ensure sidebar maintains its width */
@media (min-width: 768px) {
    #sidebar {
        flex: 0 0 275px;
        max-width: 275px;
    }
    
    /* Ensure main content doesn't overflow */
    #container-row > .col {
        overflow-x: hidden;
    }
}

/* Control table layout when showing all columns */
#practice-selection-table {
    table-layout: auto;
    width: 100%;
    max-width: 100%;
}

.sticky-header th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.sticky-column {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: inherit;
}

/* Fix for sticky column header (corner cell) */
th.sticky-column {
    z-index: 3;
}

/* Ensure the table takes appropriate width */
#practice-selection-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Add shadow effect to indicate scrolling */
.sticky-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    height: 100%;
    width: 5px;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

/* Style for table cells */
#practice-selection-table td, 
#practice-selection-table th {
    padding: 8px;
    border: 1px solid #dee2e6;
}

/* Set max height for table container */
.table-responsive {
    max-height: 600px;
    overflow-x: auto;
    overflow-y: auto;

}

/* End section of practice selection guide css */