body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100%;
    flex-direction: column;
}

h1 {
    color: #2c3e50;
}
h2 {
    color: #34495e;
    font-weight: normal;
}

h3 {
    margin-block-start: 1em;
}

.section-divider {
  margin-top: 40px;    
  margin-bottom: 40px; 

  border: 0;                      
  height: 1px;                   
  background-color: #999999;      
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    /* width: 300px; */
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.error-style {
    background-color: #f8d7da;
    border-left: 6px solid #dc3545;
    color: #721c24;
}

.info-style {
    background-color: #d7ecf8;
    border-left: 6px solid #356adc;
    color: #1c3772;
}

.buttons-row {
    display: flex;
    align-items: stretch;
    gap: 30px;
    justify-content: center;
}

.buttons-row .btn-custom {
    background-color: #ffffff !important;
}

.buttons-row .nav-link {
    text-decoration: none; 
    color: inherit; 
    text-align: center;
    padding: 0.375rem 0.75rem;
}

.cards-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    /* margin-bottom: 20px; */
}

.card {
    flex: 1;
    min-width: 200px !important;
    max-width: 300px !important;
    max-height: 150px !important;
    background: rgb(242, 242, 242);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.avg-rating-card {
    display: flex;
    justify-content: center; 
    align-items: center;  
}

/* .card:hover {
    background-color: rgb(255, 238, 214);     
    transform: translateY(-2px);    
} */

.card h2 {
    font-size: 1rem;
    font-weight: bold;
    color: #34495e;
    margin-block-start: 0.1em;
    margin-block-end: 0.1em;
}

.card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #021f33;
}

.date-picker-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    max-width: none;
}

.date-picker-container label {
    margin-bottom: 6px;
    white-space: nowrap;
    font-weight: bold;
}

.date-picker-container input {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    background: rgb(242, 242, 242);
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

#clear-filter {
    all: unset; /* Reset default button styles */
    cursor: pointer;
    font-size: 20px;
    color: #c56666; /* Soft gray, adjust as needed */
    margin-left: 6px; /* spacing from input */
    line-height: 1;
    padding: 2px;
}

#clear-filter:hover {
    color: #b31a1a; /* Darker on hover */
}

.star-rating {
    position: relative;
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    width: 120px; /* 5 stars × 24px each */
    height: 24px;
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    white-space: nowrap; /* keep stars on one line */
}

.star-layer span {
    display: inline-block;
    width: 24px; /* fixed width per star */
    text-align: center;
    white-space: nowrap;
}

.stars-background {
    color: #ccc;
    z-index: 0;
}

.stars-foreground {
    color: #ffc107;
    z-index: 1;
    pointer-events: none;
}

.icon-divider {
    display: flex;
    align-items: center;
    width: 100%;
}

.icon-divider .line {
    flex-grow: 1;
    height: 1.5px;
    background-color: #bbbbbb;
    margin: 0 8px;
}

.icon-divider .icon {
    flex-shrink: 0;
    fill: #b8b8b8;
}

.icon-container img {
    width: 25px;   /* set desired width */
    height: 25px;  /* set desired height */
    object-fit: contain;  /* keeps aspect ratio */
    display: block;  /* removes inline gap */
    margin: 0 auto;  /* center horizontally */
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: rgb(242, 242, 242);
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border: 1px solid #ccc;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 5px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    border: 1px solid #ccc;
}

input:checked + .slider {
    background-color: rgb(246, 135, 43);;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.dataTables_wrapper {
    max-height: 500px;
    overflow-y: auto;
}

#gauge-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.gauge-box {
    /* flex: 1; */
    width: 100%;
    height: 100%;
    /* min-height: 150px; */
}

.reset-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reset-button:hover {
    background-color: #e0e0e0;
}

.reset-button:active {
    background-color: #d0d0d0;
}

main {
  display: flex;
  min-height: 100vh; 
  flex-direction: column;
  justify-content: space-between;
}

.custom-header {
    height: 40px;
    background-color: #2f756c;
    color: white;
    display: flex;
    align-items: center;
}

.brand-logo {
    color: rgb(255, 255, 255);
}

.brand-logo:hover {
    color: rgb(246, 135, 43)
}

.sidebar {
    width: 275px;
    height: 100vh;
    /* background-color: #e9e9e9; */
    background-color: #4aa397;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.scrollable-sidebar-part {
    overflow-y: auto;
    overflow-x: hidden;
}

.scrollable-sidebar-part.has-scrollbar {
    margin-right: -0.75rem !important;
}

.scrollable-sidebar-part::-webkit-scrollbar {
  width: 20px; /* Make the scrollbar area wider */
}

/* Style the track (the area the scrollbar moves in) */
.scrollable-sidebar-part::-webkit-scrollbar-track {
  background: transparent; /* Make the track invisible */
}

/* Style the thumb (the draggable part) and create padding */
.scrollable-sidebar-part::-webkit-scrollbar-thumb {
  background-color: #dbdbdb; 
  border-radius: 20px;
  
  /* Create "padding" with a transparent border */
  border: 6px solid transparent;
  background-clip: content-box;
}

.scrollable-sidebar-part::-webkit-scrollbar-thumb:hover {
  background-color: #b1b1b1;
}

.content {
    margin-left: 275px; /* same as sidebar width */
    margin-top: 20px;
    width: 100%;
}

.app-name {
    text-align: center;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.icon-link:hover {
    transform: scale(1.1);
}

.icon-img {
    width: 40px;        /* or whatever size fits your design */
    height: 40px;
    display: block;
    margin: auto;       /* center inside the link */
    pointer-events: none; /* so only <a> handles clicks */
}

.filter-box {
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

.btn.btn-custom {
    border: 1px solid #ccc;
    background: rgb(242, 242, 242);
    border-radius: 8px;
    color: #4e4e4e
}

.btn.btn-custom:focus {
    border: 1px solid #b3b3b3;
    background: #e6e6e6;
    color: #4e4e4e;
    outline: none;
}

.btn.btn-custom:hover, .btn.btn-custom.active {
    background-color: rgb(246, 135, 43) !important;
    color: #ffffff
}

#star-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.star {
    position: relative;
    cursor: pointer;
    font-size: 34px;
    color: #d8d8d8;
    display: flex;
    flex-direction: column; /* stack vertically */
    justify-content: center;
    align-items: center;
}

.ind-star:hover {
    color: rgb(246, 135, 43);
    transform: scale(1.1);
}

.star span {
    font-size: 14px;
    color: #4e4e4e;
    margin-top: 1px; 
    position: static; 
}

.star .bi-star-fill {
    display: none;
    color:  rgb(246, 135, 43);
}

.star.filled .bi-star {
    display: none;
}

.star.filled .bi-star-fill {
    display: inline-block;
}

.toggle-header {
    cursor: pointer;
    font-size: 1rem;
}

.toggle-icon {
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    margin-top: -5px;
}

.bi-caret-down-fill.rotate {
    transform: rotate(-90deg);
}

.select2-container--default .select2-selection--multiple {
    background-color: rgb(242, 242, 242) !important; /* Light gray background */
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgb(246, 135, 43) !important; /* Change this to your desired background color */
    border-color: rgb(207, 103, 18) !important;      /* A slightly darker border color */
    color: #ffffff;             /* Change this to your desired font color (e.g., white) */
    padding: 5px 10px;          /* Optional: Adjust padding for better appearance */
    border-radius: 4px;         /* Optional: Adjust border-radius */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important; 
    font-weight: bold;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #3f3f3f !important; 
    background-color: rgb(255, 217, 186) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
    white-space: normal !important; /* Force wrapping, overriding any other rule */
    word-break: break-all;      /* Help break very long words */
    height: auto;               /* Allow the element height to grow */
    max-width: 170px !important; 
    position: relative;         /* Required for positioning the 'x' */
}

.content-area {
    margin-left: 275px; /* Same as sidebar width to avoid overlap */
    width: calc(100% - 275px); /* Take up remaining width */
    /* padding: 20px; */
}

.content-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    position: sticky !important;
    top: 0 !important;
    background-color: #f5f5f5;
    padding: 15px;
    z-index: 10; 
    justify-content: center;
    border-radius: 8px;
}

.main-content {
    margin-top: 20px; /* Space below the fixed header */
    padding: 20px;
}

.chart-container {
    position: relative;
    max-width: 300px; 
    max-height: 120px;
    margin: 0 auto; 
}

.language-switcher {
  display: flex;
  align-items: center;
  font-family: sans-serif;
}

.language-switcher label {
  margin-right: 10px;
  cursor: pointer;
}

#lang-select {
  padding: 3px;
  border-radius: 5px;
  color: white;
  border: 0px;
  background-color: #2f756c;
}

.select2-results__option--highlighted {
    background-color: rgb(246, 135, 43) !important; 
    color: #ffffff !important;           
}

.language-switcher .select2-selection--single {
    background-color: transparent !important; /* Make it blend with the header */
    border: none !important;                  /* Remove the border */
    height: 100%;                             /* Ensure it fills the header's height properly */
}

.language-switcher .select2-selection__rendered {
    color: #ffffff !important;                /* Make the text white */
    padding-left: 10px !important;            /* Add some space on the left */
    line-height: 38px;                        /* Vertically center the text (adjust to your header's height) */
}

.language-switcher .select2-selection__arrow b {
    border-color: #ffffff transparent transparent transparent !important;
    margin-top: 4px; /* Optional: adjust vertical position of the arrow */
}

.language-switcher .select2-container {
    min-width: 120px !important; /* Set this to a width that fits your longest option */
    width: auto !important;      /* Allow it to be wider if needed, but not narrower */
}

.site-footer {
    background-color: #2f756c; 
    color: #ffffff;          
    padding: 10px 0;           
    text-align: center;        /* Center the copyright text horizontally */
    font-family: sans-serif;   
    margin-top: auto;
}

.info-tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.info-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4aa397;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: help;
    user-select: none;
}

.info-tooltip-icon:hover {
    background-color: #2f756c;
}

.info-tooltip-text {
    visibility: hidden;
    opacity: 0;

    width: 400px;
    background-color: #2f756c;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: normal;

    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    transform: translateX(-50%); /* This horizontally centers the tooltip */

    transition: opacity 0.3s; 
}

.info-tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%; /* Position the arrow at the top of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #2f756c transparent; /* Creates a downward-pointing triangle */
}

.info-tooltip-container:hover .info-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-subnote {
    display: block; /* Forces it onto a new line */
    margin-top: 4px; /* Adds a little space below the main line */
    font-style: italic;
    font-size: 0.9em; /* Makes it slightly smaller than the main text */
    opacity: 0.85; /* Makes it slightly faded to show it's a secondary note */
}

.page-content {
    padding-left: 275px;
    padding-right: 275px;
    padding-top: 3rem;
}

.back-button-container {
    margin-bottom: 2rem; 
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa; 
    color: #333;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #e9ecef; 
}

.faq-container {
    display: flex;
    gap: 2rem; 
    align-items: flex-start; 
}

.faq-main-content {
    min-width: 0; 
    align-items: center;
    text-align: left;
}

.faq-main-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.faq-illustration {
    flex: 1;
    position: sticky;
    top: 7rem;
}

.faq-illustration img {
    max-width: 100%; /* This is the magic part! */
    height: auto;    /* This maintains the image's aspect ratio */
    display: block;  /* Removes any extra space below the image */
}

.faq-list {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-question-header {
    display: flex;
    align-items: center; 
    gap: 0.75rem; 
    margin-bottom: 1rem;
}

.faq-icon {
    fill: rgb(246, 135, 43); 
    flex-shrink: 0; 
}

.faq-question {
    font-size: 1.2rem;
    color: #000000; 
    margin-top: 0.5rem;
}

.faq-answer {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3f3f3f; 
}

.faq-item > .faq-answer {
    align-self: flex-start;
    width: 100%;
}

.support-container {
    display: flex;
    align-items: center;
    gap: 3rem; 
    /* padding: 3rem 275px; */
    padding: 3rem;
    /* background: #8acec5; */
}

.support-contact {
    flex: 1;
    max-width: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.support-text {
    flex: 1;
}

.support-text h2 {
    font-size: 2rem;
}

.support-title {
    color: rgb(246, 135, 43);
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgb(246, 135, 43);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-text {
    font-size: 1.2rem;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: bold;
}

.contact-text small {
    font-size: 0.9rem;
    color: #636363;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
}

.contact-link:hover {
    transform: scale(1.02);
}

.faq-and-support-wrapper {
    position: relative;
    overflow: hidden;
}

.faq-and-support-wrapper::before {
    content: '';
    position: absolute;
    z-index: -1;
    background-image: linear-gradient(to bottom left, #ccf7f1, #4aa397);
    top: 13%; 
    left: 0;
    right: 0;
    bottom: 10%;
    transform: skewY(-10deg);
    transform-origin: top left;
}

.custom-faq-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.app-name-container {
    background-color: #4aa397;
    width: 275px;
    padding-top: 16px;
}

.custom-header-container {
    width: calc(100% - 275px);
    margin-bottom: auto;
}

.welcome-message {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
}

.wordcloud-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

#wordcloud-chart {
    width: 100%;
    height: 100%;
}