/*-----------------------------------------*/
/*--- 1. Structure                  -------*/
/*--- 2. Global Styles              -------*/
/*--- 3. Header & Banner            -------*/
/*--- 4. Nav                        -------*/
/*--- 5. Content                    -------*/
/*--- 6. Footer                     -------*/
/*-----------------------------------------*/

/*--- 1. Structure                  -------*/

.a:hover {
    background-color: transparent;
}

/*--- 2. Global Styles              -------*/
/* this colour is the banner colour at 80%*/
::-webkit-scrollbar-thumb {
    background-color: #005eb8cc;
}

/* these are coloured with the banner colour at 60% and a border of the colour above*/
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
    background-color: #005eb899;
    border: 1px solid #005eb8cc;
}

a:has(img) {
    display: inline-flex;
}

a:hover img, a:focus img {
    outline: 3px solid transparent;
}

/*--- 3. Header & Banner            -------*/
#banner {
    background-color: #005EB8;
}

#pageTitle, #pageSubtitle {
    color: #fff;
}

/*----- .index Banner ------*/
.page-banner {
    background-color: #CDDFF3;
    width: 100%;
}

/*--- 4. Nav                        -------*/
.nav-link.active {
    background-color: #005EB8 !important;
    color: #fff !important;
    box-shadow: 0 0 0 5px #005EB8;
}

.nav-pills .nav-link.active:focus, .nav-link:focus {
    box-shadow: 0 0 0 5px #ffb81C;
    background-color: #ffb81C !important;
    color: #212b32 !important;
}

.nav-pills .nav-link.active:hover, .nav-link:hover {
    background-color: #ffcd60 !important;
    box-shadow: 0 0 0 5px #ffcd60 !important;
    color: #212b32 !important;
}

/*--- 5. Content                    -------*/
#solidHeader {
    background-color: #ccc;
}


.btn, .btn:visited {
    background-color: #007f3b;
    color: #ffffff;
    box-shadow: 0 4px 0 #003317;
}

.btn:hover,
.btn:focus,
.btn:active {
    background-color: #00662f !important;
    color: #fff !important;
    border-radius: 5px;
}

.btn-secondary,
.btn-secondary:visited {
    background-color: #425563;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #384854 !important;
    color: #fff !important;
}

.btn-white,
.btn-white:visited {
    background-color: #fff;
    color: #231f20;
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
    background-color: #f2f2f2 !important;
    color: #231f20 !important;
}

.inset-text {
    border-left: 12px solid #005eb8;
}

.accordion .details-summary p,
.accordion .details-summary span {
    color: #005eb8;
}

.care-card-heading {
    background-color: #005eb8;
    color: #fff;
}

.care-card-arrow:before,
.care-card-arrow:after {
    border: solid 32px #005eb8;
}
.scrollable-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid black;
    border-radius: 5px;
    margin-right: 5px;
    height: 45px;
}

.search-btn {
    height: 41px;
    padding: 0 15px;
    margin-top: 17px;
}

.form-banner {
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.form-banner input[type="checkbox"] {
    height: 30px;
    width: 30px;
    margin: 0;
    flex-shrink: 0;
}

.remove-btn {
    height: 37px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    vertical-align: top;
    margin-top: 0;
}

#subcategory-container {
    display: none;
}

.subcategory-input {
    display: flex;
    vertical-align: top;
    margin: 0;
    padding: 0;
}


.float-right {
    margin-bottom: 50px;
}

.flex-container {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin: auto;
    padding-bottom: calc(6vh + 30px);
}

.flex {
    padding-bottom: calc(5vh + 20px);
}

.card {
    border-radius: 5px;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px;
}

.category-details {
    padding-top: 2%;
    padding-left: 5%;
}

.table-head {
    background-color: #005EB8;
    color: white;
}

.inline-display {
    display: inline;
}

.tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    margin: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    border: 2px solid black;
    font-size: 14px;
    text-decoration: none;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag:hover {
    background-color: #c0c0c0;
    transform: scale(1.02);
}

h1 {
    font-size: 38px;
    max-width: 40ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.analytics-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.stat-card h3 {
    font-size: 2.5em;
    margin: 0;
    color: #007bff;
}

.stat-card p {
    margin: 10px 0 0 0;
    color: #6c757d;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* New layout classes for restructured design */
.stats-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.stats-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.stats-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.stats-section h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1em;
}

.table-container {
    max-height: 300px;
    overflow-y: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.report-container {
    margin-top: 30px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid-row {
        grid-template-columns: 1fr;
    }

    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*--- 6. Footer                     -------*/
#footer {
    background-color: #005EB8;
}
