html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
@media (max-width: 768px) {
    footer {
        font-size: 14px;
        padding: 15px 0;
    }
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    height: 100%;
    margin: 0;
    margin-bottom: 0;
    padding-top: 0 !important;
    background-color: #eee !important;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}
/* Main content should take up remaining space */
main {
    flex: 1; /* Pushes the footer to the bottom */
}
/* Footer styling */
footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 0;
}
.navbar-nav {
    display: inline !important;
    flex-direction: row !important;
    margin-bottom: 0;
    list-style: none;
    text-align: center !important;
}

.site-content {
    padding-left: 50px;
    padding-right: 50px;
}

.entry-title {
    text-align: center;
}

a {
    text-decoration: none !important;
    color: #337ab7;
}

entry-title a {
    color: black !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 30px !important;
    text-align: Center;
}

.txtRequired {
    color: red;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.txtLabel {
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    padding-top: 5px;
    text-align: center;
}

.style5 {
    color: black !important;
    font-family: "Book Antiqua";
    font-size: 17pt;
    font-variant: small-caps;
    font-weight: bold;
    letter-spacing: 0.25px;
    text-align: center;
}

.formField {
    background: #F8F8F8;
}

hr.thickLine {
    border-top: 1px solid #8c8b8b
}

.style3 {
    font-family: "Book Antiqua";
    font-size: 15pt;
    font-variant: small-caps;
    font-weight: bold;
    letter-spacing: 0.25px;
    text-align: center;
}

.style6 {
    font-family: "Book Antiqua";
    font-size: 15pt;
    font-variant: small-caps;
    font-weight: bold;
    letter-spacing: 0.25px;
    text-align: center;
    text-decoration: underline;
}

.sectionHeader {
    color: darkblue;
    font-weight: bold;
    text-align: center;
}
/*header and footer alignment*/
#headerNavBar {
    background-color: #080530;
    font-size: 13pt;
    font-weight: bold;
}

.topnav {
    border: none;
    padding: 5px !important;
    text-align: center;
}

    .topnav li {
        margin-left: 20px !important;
        margin-right: 20px !important;
        font-size: 12pt !important;
        padding-bottom: 5px !important;
    }

.footer-nav li {
    margin-left: 20px !important;
    margin-right: 20px !important;
    font-size: 12pt;
    padding-bottom: 5pt;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .navbar-nav {
        float: none !important;
        margin: 0;
    }
}
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

.required-field {
    color: red;
    font-size: 16px
}

.panel-validation-error {
    border-color: #a91e23;
    position: sticky;
    top: 0
}

.panel {
    border: 1px solid #aaa;
    background: #ffffff;
}

.errorListItem .glyphicon-edit {
    display: none;
}

.panel-body-validationError {
    color: #a91e23;
    padding: 15px;
}

.panel-validation-error > .panel-heading > .panel-title {
    font-size: 18px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.panel-validation-error > .panel-heading {
    color: white;
    font-size: 18px;
    background-color: rgb(169,3,41);
}

    .panel-validation-error > .panel-heading > .panel-title {
        font-size: 18px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

.row-even {
    background-color: #eee; /* light gray */
}

.row-odd {
    background-color: gainsboro; /* white */
}
/* =================================
           GRID LAYOUT SYSTEM
           ================================= */

/* Dynamic grid container that adjusts based on state */
.entries-grid {
    display: grid;
    gap: 1rem;
    /* Smooth transition when layout changes */
    transition: all 0.4s ease-in-out;
}

    /* Expanded state: Shows multiple columns when no detail is selected */
    .entries-grid.expanded {
        /* Auto-fill creates as many columns as will fit, minimum 220px each */
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    /* Collapsed state: Shows 2 columns when detail card is open */
    .entries-grid.collapsed {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px; /* Limits width to leave room for detail card */
    }

/* =================================
           JOURNAL ENTRY CARDS (CHIPS)
           ================================= */

/* Individual journal entry card styling */
.chip-container {
    background-color: #EEEEEE;
    color: #080530; /* Blue heading color for text */
    border: 2px solid #EEEEEE; /* Gray border */
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    /* Smooth animation for hover and active states */
    transition: all 0.2s ease;
    position: relative;
    min-height: 180px;
}

    /* Hover effect for journal cards */
    .chip-container:hover {
        /* Slight elevation on hover */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(8, 5, 48, 0.15);
        border-color: #337AB7; /* Blue link color on hover */
    }

    /* Active state when card is selected */
    .chip-container.active {
        background-color: #EEE; /* Blue background when active */
        color: white;
        border-color: #080530;
        box-shadow: 0 4px 16px rgba(8, 5, 48, 0.25);
    }

        /* Adjust button colors when card is active */
        .chip-container.active .btn-senate-outline {
            border-color: white;
            color: #080530;
        }

            .chip-container.active .btn-senate-outline:hover {
                background-color: white;
                color: #080530;
            }

/* Session number watermark in background */
.session-watermark {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 3rem;
    font-weight: bold;
    opacity: 0.05;
    color: #080530;
}

.chip-container.active .session-watermark {
    color: white;
    opacity: 0.1;
}

/* =================================
           DETAIL CARD SECTION
           ================================= */

/* Container for the detail view */
.detail-card {
    background: white;
    border: 2px solid #EEEEEE;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    /* Slide-in animation when card appears */
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.4s forwards;
}

/* Keyframe animation for detail card entrance */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Placeholder shown when no entry is selected */
.placeholder-card {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9D9D9D; /* Gray font color */
    font-style: italic;
    min-height: 400px;
}

/* =================================
           BUTTON STYLES
           ================================= */

/* Custom button matching senate style */
.senate-outline {
    border: 1px solid #337AB7; /* Blue link color */
    color: #337AB7;
    background: #EEE;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

/* House Bills style */
.House-Outline {
    border: 1px solid #9D9D9D; /* Gray font color color */
    color: #9D9D9D;
    background: #EEE;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

/* Governor Action style */
.Gov-Outline {
    border: 1px solid #B22222; /* Red color */
    color: #B22222;
    background: #EEE;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

/* =================================
           CONTENT WRAPPER LAYOUT
           ================================= */

/* Main content wrapper that switches between layouts */
.content-wrapper {
    display: grid;
    gap: 2rem;
    transition: all 0.4s ease-in-out;
}

    /* Single column when no detail is shown */
    .content-wrapper.card-closed {
        grid-template-columns: 1fr;
    }

    /* Two column layout when detail is shown */
    .content-wrapper.card-open {
        grid-template-columns: auto 1fr;
    }

/* =================================
           UTILITY CLASSES
           ================================= */

/* Information grid for detail view */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background-color: #EEEEEE;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Individual info items */
.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: #9D9D9D; /* Gray font color */
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #080530;
    font-size: 1rem;
    font-weight: 500;
}

/* Tag styling for categories */
.tag-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
    margin: 0.25rem;
}

/* Committee badge styling */
.committee-badge {
    background-color: #B22222; /* Red link color for important items */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
}

/* Date and metadata styling */
.date-text {
    color: #9D9D9D;
    font-size: 0.875rem;
}

.session-title {
    color: #080530;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .entries-grid.collapsed {
        grid-template-columns: 1fr;
    }

    .content-wrapper.card-open {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Main container with white background for content */
.main-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 20000px !important;
}
/* Content Layout */
.content-wrapper {
    display: grid;
    gap: 2rem;
    transition: all 0.4s ease-in-out;
}

    .content-wrapper.card-closed {
        grid-template-columns: 1fr;
    }

    .content-wrapper.card-open {
        grid-template-columns: auto 1fr;
    }