html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

#searchForm, #yearForm {
    max-width: 65%;
    margin: 0 auto;
}

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 */
}

.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;
}
/* 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 - transparent to show page background */
.main-container {
    background: transparent;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: none;
    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;
    }

body {
    background-color: #EEEEEE;
}

/* Bill cards use component-library .card styles */
.card {
    margin-bottom: 10px;
}

.bill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.bill-number {
    font-weight: bold;
    font-size: 1.1em;
}

    .bill-number a {
        color: #1e3a5f;
        text-decoration: none;
    }

        .bill-number a:hover {
            text-decoration: underline;
            color: #0d2a4a;
        }

.bill-sponsor-handler {
    text-align: right;
    font-size: 0.9em;
}

    .bill-sponsor-handler strong {
        color: #1e3a5f;
    }

    .bill-sponsor-handler a {
        color: #1e3a5f;
        text-decoration: none;
    }

        .bill-sponsor-handler a:hover {
            color: #0d2a4a;
            text-decoration: underline;
        }

.bill-title {
    color: #1e3a5f;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: center;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #1e3a5f;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.85em;
    color: #1e3a5f;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Desktop link layout - visible above 761px - flex wrapped, not stacked */
.bill-links-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Mobile expandable footer - hidden above 761px */
.bill-links-footer {
    display: none;
}

.bill-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #EEEEEE;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    color: #1e3a5f;
}

    .bill-links-header:hover {
        background-color: #dee2e6;
    }

    .bill-links-header.expanded {
        border-radius: 6px 6px 0 0;
        border-bottom: none;
    }

.chevron {
    transition: transform 0.2s ease;
    font-size: 0.8em;
    color: #1e3a5f;
}

.bill-links-content {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

    /* Make all link-card-items full width in mobile collapsible section */
    .bill-links-content .link-card-item {
        width: 100%;
    }

/* Ensure link-card-item <a> tags use correct colors over global a {} rule */
a.link-card-item,
a.link-card-item-with-chip {
    color: #1e3a5f !important;
}

a.link-card-item:hover,
a.link-card-item-with-chip:hover {
    color: white !important;
}

@media (max-width: 761px) {
    .bill-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bill-sponsor-handler {
        text-align: left;
    }
    /* Hide desktop links on narrow screens */
    .bill-links-desktop {
        display: none;
    }
    /* Show mobile expandable footer on narrow screens */
    .bill-links-footer {
        display: block;
    }
}

/* =================================
           DAILY ACTIONS PAGE
           ================================= */

/* Override container for full width */
body > .wrapper > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ========== SEARCH BAR ========== */

.search-input-wrapper {
    position: relative;
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3477b2;
    box-shadow: 0 0 0 3px rgba(52, 119, 178, 0.1);
}

.search-icon {
    position: absolute;
    right: 40px;
    color: #6c757d;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.clear-search-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Autocomplete Dropdown */
.autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3477b2;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.autocomplete--show {
    display: block;
}

.autocomplete__item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.15s ease;
    font-size: 0.95rem;
}

.autocomplete__item:last-child {
    border-bottom: none;
}

.autocomplete__item:hover,
.autocomplete__item--active {
    background: #e9f5ff;
}

.autocomplete__loading,
.autocomplete__no-results {
    padding: 12px 15px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* ========== TWO-PANEL LAYOUT ========== */

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

/* Desktop - side by side layout */
@media (min-width: 1024px) {
    .content-layout.has-detail {
        grid-template-columns: 1fr 3fr;
        gap: 1.5rem;
    }

    .content-layout.has-detail .dates-panel {
        position: sticky;
        top: 0;
        align-self: start;
        z-index: 50;
    }
}

/* ========== DATE BUTTONS (Left Panel) ========== */

.dates-scroll-container {
    max-height: none;
}

@media (min-width: 1024px) {
    .dates-scroll-container {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 5px;
    }

    .dates-scroll-container::-webkit-scrollbar {
        width: 8px;
    }

    .dates-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .dates-scroll-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .dates-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

.dates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 576px) {
    .dates-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

a.date-button {
    display: block;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

a.date-button:hover {
    background: #f8f9fa;
    border-color: #3477b2;
    color: #3477b2 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(52, 119, 178, 0.2);
}

a.date-button.active {
    background: linear-gradient(135deg, #080530 0%, #3477b2 100%);
    border-color: #080530;
    color: white !important;
    box-shadow: 0 2px 8px rgba(8, 5, 48, 0.3);
}

a.date-button.active:hover {
    background: linear-gradient(135deg, #080530 0%, #2a5f8f 100%);
    transform: translateY(0);
}

/* ========== DETAIL PANEL COMPONENTS ========== */

.header-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

.header-title-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Transparent chip for dark/gradient headers (base sizing from component-library .round-status-chip) */
.chip--header-overlay {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    white-space: nowrap;
}

a.btn-modal-close {
    color: white !important;
}

a.btn-modal-close:hover {
    color: white !important;
}

a.bill-card-header-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

a.bill-card-header-link:hover {
    text-decoration: underline;
    color: white !important;
}

/* Base styles from component-library.css; page adds vertical centering */
.card__footer--sponsors {
    align-items: center;
}

/* Sponsor link styling */
a.sponsor-item {
    color: #1e3a5f;
    text-decoration: none;
}

a.sponsor-item:hover {
    text-decoration: underline;
    color: #0d2a4a;
}

/* Sponsor links inside dark card headers need white text (!important overrides external siteMain.css global link color) */
.card__header a.sponsor-item {
    color: white !important;
}

.card__header a.sponsor-item:hover {
    color: #ddd !important;
}

/* Search mode header - flat flex layout matching date card headers */
.search-bill-header {
    flex-wrap: wrap;
}

.search-bill-title {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Override component-library .sponsor-item display:flex which causes line break inside title */
.search-bill-title .sponsor-item {
    display: inline;
}

/* Keep LR chip inline with bill title text */
.search-bill-title .square-status-chip {
    vertical-align: middle;
    margin-left: 8px;
}

/* Push action dates chip to the right, next to close button */
.search-bill-header > .round-status-chip {
    margin-left: auto;
    margin-right: 15px;
}

/* Brief description line in search mode header - wraps to its own row */
.search-brief-description {
    flex-basis: 100%;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

/* Page-specific additions to component-library .expand-toggle */
.expand-toggle {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    gap: 8px;
}

.expand-toggle:hover {
    color: #3477b2;
}

.expand-toggle__text {
    font-size: 0.875rem;
}

/* Override chevron rotation for expand toggle - point up when expanded (not collapsed) */
.card--truncated:not(.collapsed) .expand-toggle .chevron-arrow {
    transform: rotate(-45deg);
}

.no-bills-message,
.no-actions-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Search results: date cards use .card from component-library; highlight state is page-specific */
.card.date-highlighted {
    border-color: #b0171f;
    box-shadow: 0 0 0 3px rgba(176, 23, 31, 0.2), 0 4px 12px rgba(176, 23, 31, 0.15);
}

/* Bill cards - consistent height for all cards with footers */
.detail-panel .card--with-footer {
    min-height: 375px;
}

/* Lock collapsed truncated cards at 375px */
.detail-panel .card--truncated.collapsed {
    max-height: 375px;
}

/* Body truncation height to fit within 375px card total */
/* Card breakdown: header (~65px) + action-pane (~45px if present) + body (175px when truncated) + footer (~60px) = ~345-385px */
.detail-panel .card--truncated.collapsed .card__body {
    max-height: 175px;
}

/* When expanded, remove height restriction so card can grow */
.detail-panel .card--truncated:not(.collapsed) {
    max-height: none;
}

/* =================================
           END DAILY ACTIONS PAGE
           ================================= */
/*THIS SECTION CONTROLS THE CARD HEADERS TO ADAPT SIZE AND FONT SIZE BASED ON SCREEN SIZE*/
.cardheadersizing {
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Vertically center content */
    justify-content: space-between; /* Space between elements */
    height: 60px; /* Fixed height for collapsed headers */
    padding: 15px 20px;
    background-color: #f5f5f5; /* Example background color */
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden; /* Hide overflowing content */
    transition: height 0.3s ease; /* Smooth transition for height changes */
}

    .cardheadersizing.expanded {
        height: auto; /* Allow height to adjust based on content when expanded */
        white-space: normal; /* Allow text wrapping when expanded */
        overflow: visible; /* Show all content when expanded */
    }

.linkfontsize {
    font-size: clamp(12px, 1vw, 24px);
}

/* Removes borders for collapsed cards */
.card.collapsed {
    border: 1px solid transparent; /* No border for collapsed cards */
    box-shadow: none; /* No shadow for collapsed cards */
    transition: all 0.3s ease; /* Smooth transition for height and shadow */
}

.card.expanded {
    border: 1px solid #ddd; /* Add border for expanded card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for expanded card */
}
/*----END REMOVES BORDERS FOR COLLAPSED CARDS----*/

