:root {
    navbar-breakpoint: 320px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
    color: #000080;
    background-color: #2fcb9a; /* Light green background color */
    color: #004591;
}
#content {
    flex-grow: 1; /* Content area takes remaining space */
    padding: 10px;
}
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    color: #000080
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    border-color: darkblue;
}
.race-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #000080
}
.race-info {
    margin-bottom: 5px;
}
.race-divider {
    border-top: 2px solid #000;
    margin-bottom: 20px;
    color: #000080
}
.highlighted-row {
    background-color: yellow; /* Change the color to yellow */
}
.blank-row {
    background-color: #d9d9d9; /* Grey background color for blank rows */
}
.change-password {
  border: 1px solid #ccc; /* Border around the change password details */
  padding: 20px;
}

.password-box {
  text-align: center; /* Align password boxes to the right */
  margin-bottom: 10px;
}

.password-box label {
  display: inline-block;
  width: 150px; /* Adjust the width as needed */
}

.password-box input {
  width: 200px; /* Adjust the width as needed */
}
.scroll-left {
    overflow: hidden;
    white-space: normal;
    float: left; /* Align to the left */
    padding-left: 200px; /* Add some padding for spacing */
    padding-top: 10px;
    color: #2fcb9a;
    display: flex; /* Use flexbox */
    align-items: center; /* Align items vertically */
    justify-content: center;
    width: 100%;
}

.navbar-end {
    float: right; /* Align menu options to the right */
}

.scroll-left p {
    display: inline-block;
    animation: scrollLeft 30s linear infinite;
}

@keyframes scrollLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
.navbar-end {
    float: right;
}
/* Default styles */
.navbar-menu {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}
.navbar-menu.is-active { position: absolute;   width: 100%; }

.link-style {
  font-weight: bold;
  color: blue;
    text-underline: blue;
}

.link-style:hover {
  color: red;
}
#container {
  display: flex;
  flex-direction: column;
  height:100%;
  padding: 30px;
  font-size: 14px;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
}

#race {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid #dadada;
  padding: 30px;
  border-radius: 30px;
}
#border_filter {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid #dadada;
  padding: 30px;
  border-radius: 30px;
}

#border_filter_image {
  display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    grid-column-gap: 200px;
  flex: 1;
  flex-direction: column;
  border: 1px solid #dadada;
  padding: 30px;
  border-radius: 30px;
    text-align: center;
}

#border_filter_image img {
    grid-column: 1;
    justify-self: center;
}

#success_rate_container {
    grid-column: 2;
    text-align: center;
}

#success_rate_label {
    color: yellow;
    font-weight: bold;
    text-decoration: underline;
    font-size: 3em; /* Adjust the font size as needed */
}

#success_rate_value {
    color: green;
    font-weight: bold;
    font-size: 4em; /* Adjust the font size as needed */
}

#race_header {
  display: flex;
  line-height: 1;
  margin: 20px 0;
  color: #000080
}

#race_header_left,
#race_header_right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-right: 30px;
}

#race_event {
  text-align: left;
  margin: 2px 0;
  line-height: 1;
  color: #000080
}

#race_name {
  text-align: left;
  margin: 2px 0;
  line-height: 1;
  font-weight: 500;
  color: #000080
}

#race_details_1,
#race_details_2 {
  margin: 2px 0;
  line-height: 1.2;
  font-weight: 500;
  color: #000080
}

.race_runner {
  display: flex;
  padding: 20px 0;
  color: #023020
}

.race_runner_number_draw {
  margin-right: 20px;
  width:16px;
  color: #023020
}

.race_runner_number {
  font-weight: 500;
  font-size: 16px;
  color: #023020
}

.race_runner_silk_container {
  margin-right: 20px;
}

.race_runner_silk {
  width: 60px;
}

.race_runner_name_breeding_form {
  width: 205px;
  margin-right: 20px;
  color: #023020
}

.race_runner_name {
  text-decoration: underline;
  text-align: left;
  margin: 0;
  color: #0000FF;
  font-weight: 500;
  font-size: 16px;
            a:link {
      color: blue;
      background-color: transparent;

            text-align: left;
    }
    a:visited {
      color: blue;
      background-color: transparent;
      text-decoration: none;
        text-align: left;
    }
    a:hover {
      color: red;
      background-color: transparent;
      text-decoration: underline;
        text-align: left;
    }
    a:active {
      color: yellow;
      background-color: transparent;
      text-decoration: underline;
        text-align: left;
    }
}

.race_runner_breeding {
  text-align: left;
  font-size: 12px;
  color: #023020;
}

.race_runner_form {
  text-align: left;
  font-size: 12px;
  color: #023020;
}

.race_runner_weight {
  font-size: 12px;
  line-height: 1.5;
  margin-right: 40px;
  width: 55px;
  color: #000000;
    text-align: right;
}

.race_runner_weight_headgear {
  font-size: 12px;
  line-height: 1.5;
  margin-right: 40px;
  width: 55px;
  color: #023020;
    text-align: right;
}

.race_runner_ofr_ts {
  font-size: 12px;
  line-height: 1.5;
  margin-right: 60px;
  color: #023020;
    text-align: right;
}

.race_runner_jockey_trainer {
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  color: #023020;
}
.bullet-list {
  list-style: none; /* Remove default list styles */
  padding-left: 0; /* Remove default padding */
}

.bullet-list li {
  position: relative;
  padding-left: 20px; /* Adjust spacing between bullet and text */
}

.bullet-list li:before {
  content: "\2022"; /* Unicode character for bullet (•) */
  position: absolute;
  left: 0;
}

/* Adjust alignment */
.bullet-list {
  text-align: justify;
}
.bullet-list li {
  display: inline-block;
}
.subs_table {
     text-align: center;
    border: aqua;
    color: #125e16;
    border-collapse: separate;
}
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px; /* Gap between columns */
}

.left-column {
    grid-column: 1; /* First column */
}

.right-column {
    grid-column: 2; /* Second column */
}

canvas {
    display: flex;
    justify-content: center;
    border: white;
}

.uniform-input {
    width: 300px; /* Set a fixed width for input elements */
    margin-right: 10px; /* Add some spacing between input elements if needed */
}

/* Style the labels for consistency */
.aboutMeLabel {
    width: 120px; /* Set a fixed width for labels */
    text-align: right; /* Align text to the right */
    margin-right: 10px; /* Add some spacing between labels and input elements */
    display: inline-block; /* Ensure inline-block display for consistent spacing */
}

.commsLabel {
    width: 200px; /* Set a fixed width for labels */
    text-align: left; /* Align text to the right */
    margin-right: 2px; /* Add some spacing between labels and input elements */
    display: inline-block; /* Ensure inline-block display for consistent spacing */
}
.dropdown-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-container select {
    margin-right: 10px; /* Adjust as needed */
}

.race_name_hyperlink {
      text-decoration: underline;
        text-decoration-color: darkblue;
      text-align: left;
      margin: 0;
      color: #3266a1;
      font-weight: 400;
        a:link {
      color: blue;
      background-color: transparent;
      text-decoration: none;
            text-align: left;
    }
    a:visited {
      color: blue;
      background-color: transparent;
      text-decoration: none;
        text-align: left;
    }
    a:hover {
      color: red;
      background-color: transparent;
      text-decoration: underline;
        text-align: left;
    }
    a:active {
      color: yellow;
      background-color: transparent;
      text-decoration: underline;
        text-align: left;
    }
  }
[data-tab-info] {
    display: none;
}

.active[data-tab-info] {
    display: block;
}

.tab-content {
    margin-top: 2rem; /* Adjust the margin to accommodate the fixed tab bar */
    font-size: 14px;
    font-family: sans-serif;
    font-weight: normal ;
    color: rgb(0, 0, 0);
}

.tabs {
    position: fixed; /* Set the position to fixed */
    top: 80px; /* Align the tab bar to the top */
    left: 20px; /* Align the tab bar to the left */
    width: 100%; /* Ensure the tab bar spans the full width of the viewport */

    border-bottom: 0px solid grey;
    background-color: #86a8d5;
    font-size: 14px;
    color: white;
    display: flex;
    justify-content: flex-start; /* Align tabs starting from the left */
}

.tabs span {
    background: rgb(50, 102, 161);
    padding: 10px;
    border: 1px solid rgb(255, 255, 255);
    margin-right: 10px; /* Added margin to create space between tabs */
}

.tabs span:hover {
    background: rgb(0, 42, 255);
    cursor: pointer;
    color: #ffffff;
}
.tab_container {
    background-color: #86a8d5;
}
.race-title {
    font-size: 0.8rem;
    color: red;
    text-decoration: underline;
}
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}
.popup-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: #fff;
}
.popup-content img {
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
}
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.dropdown-container {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    margin-right: 10px;
}

.dropdown-container select {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    font-size: 1rem;
}

.highlight-yellow {
    background-color: #dccb14;
}

.highlight-green {
    background-color: #3266a1;
    color: white; /* Optional: to ensure text is readable on green background */
}

.icon-green {
    color: green;
}

.icon-red {
    color: red;
}

.icon-amber {
    color: orange;
}
.highlight-light-blue {
    background-color: lightblue;
}

.us_horse_colours_1 {
    background-color: #ff0000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_2 {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_3 {
    background-color: #0000ff !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important
}

.us_horse_colours_4 {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_5 {
    background-color: #196c19 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_6 {
    background-color: #020202 !important;
    color: #ffff00 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_7 {
    background-color: #ffa500 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_8 {
    background-color: #ff69b4 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_9 {
    background-color: #00ffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_10 {
    background-color: #800080 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_11 {
    background-color: #c0c0c0 !important;
    color: #ff0000 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_12 {
    background-color: #00ff00 !important;
    color: #020202 !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_13 {
    background-color: #362222 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

.us_horse_colours_14 {
    background-color: #8b0000 !important;
    color: #ffd700 !important;
    border: 1px solid #000000 !important;
}

.green-arrow {
    font-size: 16px;
    margin-left: 5px;
}

.red-arrow {
    font-size: 16px;
    margin-left: 5px;
}
.predictions-table th, .predictions-table td {
    text-align: center !important;
    vertical-align: middle !important;
}
/* Black title */
.black-title {
    color: #000000 !important;
}

/* Grey border around selections */
.predictions-section {
    border: 1px solid #808080;
    padding: 10px;
    margin-bottom: 20px;
}
.star-rating {
    display: flex;
    align-items: center;
}
.star {
    font-size: 20px;
    color: black;
    margin-right: 5px;
    border: 1px solid yellow; /* Add a yellow border to all stars */
    border-radius: 3px; /* Optional: add some border radius for better appearance */
    padding: 2px; /* Optional: add some padding for better appearance */
}
.gold-star {
    color: #00ff5d;
    border-color: yellow;
}
.info-icon {
    display: inline-block;
    background-color: blue;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 14px;
}
.tooltip {
    display: none;
    position: absolute;
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    width: 300px; /* Increase width of the tooltip */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 12px; /* Smaller font size */
}
.notification-message {
    background-color: #2196F3;  /* Blue background */
    color: white;               /* White text */
    padding: 10px 20px;         /* Padding for spacing */
    border-radius: 5px;         /* Rounded corners */
    font-weight: bold;          /* Bold text */
    margin: 10px 0;             /* Space around the notification */
    font-size: 16px;            /* Adjust font size as needed */
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #2fcb9a;
    color: #333;
}

.profile-container {
    width: 80%;
    margin: 2em auto;
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 1.8em;
    margin-bottom: 1em;
    text-align: center;
}

.highlight {
    color: #007BFF;
    font-weight: bold;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 2em;
}

.section {
    flex: 1;
}

.section h2 {
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.5em;
    margin-bottom: 1.5em; /* Adds spacing below section titles */
    color: #333;
}

.form-group label {
    display: block;
    margin: 0.8em 0 0.2em;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.note {
    font-size: 0.8em;
    color: #777;
    margin-top: -0.5em;
}

.cancelSubButton {
    display: inline-block;
    padding: 0.6em 1.2em;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin-top: 1em;
}

.cancelSubButton.primary {
    background-color: #007BFF;
}

.cancelSubButton:hover {
    background-color: #0069D9;
}

input[type="checkbox"] {
    margin-right: 0.5em;
    vertical-align: middle; /* Aligns checkboxes vertically */
}

.communication-group label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.cancel-button {
    margin-bottom: 2em; /* Adds spacing below the Cancel button */
}

/* Navbar styling */
.navbar {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

/* Navbar brand (clock and logo) */
.navbar-item img {
    max-height: 2.5rem; /* Adjust logo size */
}

.clock canvas {
    width: 50px;
    height: 50px;
}

/* Burger menu visibility */
.navbar-burger {
    display: none; /* Hide burger by default */
    margin-left: auto;
    color: white;
    cursor: pointer;
}

.navbar-burger span {
    background-color: white;
}

/* Hide/show navbar menu on smaller screens */
@media screen and (max-width: 1024px) {
    .navbar-burger {
        display: block; /* Show burger on smaller screens */
    }
    .navbar-menu {
        display: none; /* Hide menu initially */
    }
    .navbar-menu.is-active {
        display: block; /* Show menu when toggled */
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background-color: #000; /* Match navbar background */
        z-index: 10;
    }

    .navbar-item {
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* User Dropdown Menu Styling */
.navbar-dropdown {
    background-color: #000; /* Match navbar background */
    border: none;
}

.navbar-dropdown .navbar-item {
    color: #fff; /* White text for dropdown items */
    padding: 0.5rem 1rem;
}

.navbar-link {
    color: #00d1b2; /* Highlight user name color */
}

.navbar-link:hover {
    background-color: #333;
    color: #fff;
}

/* Buttons consistency */
.buttons .button {
    margin: 0.25rem 0;
}

@media screen and (max-width: 768px) {
    .navbar-item img {
        max-height: 2rem; /* Adjust logo for smaller screens */
    }
}
.index_title {
    font-size: 24px; /* Adjust the size of the text */
    font-weight: bold; /* Optional: Makes the text bold */
    color: #333; /* Optional: Dark gray text color */
    text-align: center; /* Optional: Centers the text */
    margin: 10px 0; /* Optional: Adds spacing around the text */
}

/* strategy.html specific styles */
#strategy_text {
    text-align: left; /* Align text to the left */
    width: 80%; /* Adjust width as needed */
    margin: 20px auto; /* Center the div on the page */
    padding: 20px; /* Add some padding */
}

#strategy_text h1 {
    text-align: center;
    margin-bottom: 1em;
    font-size: 2em; /* Increased font size */
}

#strategy_text p {
    line-height: 1.6; /* Improve readability with line spacing */
    margin-bottom: 1em; /* Add space between paragraphs */
}

#strategy_text ul,
#strategy_text ol {
    list-style-position: inside; /* Place bullet points inside the list */
    padding-left: 20px; /* Add indentation */
}
.horse-link {
  text-decoration: underline !important;
    color: blue !important;
}
  #horse-detail-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2fcb9a; /* This was added later */
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1000;
}
  #horse-detail-popup-2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2fcb9a;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1000;
}
  .race-details-button {
  background-color: blue;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

#all-races-button {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  background-color: green; /* Green button */
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#close-button, #close-button-2 {
  position: absolute;
  bottom: 10px;
  right: 10px; /* Position on the right */
  padding: 5px 10px;
  background-color: red; /* Red button */
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.horseNumber {
  text-align: center;
}
/* Popup container styling */
#horse-detail-popup-2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2fcb9a;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1000; /* Ensure it's on top */
}

/* Tabs container */
#horse-detail-popup-2 .tab {
  display: flex !important; /* Flex layout for horizontal alignment */
  justify-content: flex-start !important; /* Align tabs to the left */
  gap: 8px !important; /* Space between tabs */
  border-bottom: 2px solid #ccc !important; /* Bottom border for tabs */
  padding: 10px 0 !important;
  background-color: #f9f9f9 !important; /* Light gray background */
}

/* Individual tab buttons */
#horse-detail-popup-2 .popup-tabs .tab button {
    all: unset; /* Reset all inherited styles */
  appearance: auto !important; /* Override any global resets */
  background-color: #ffffff !important; /* White tab background */
  color: #333 !important; /* Dark text color */
  border: 1px solid #ccc !important; /* Light gray border */
  border-radius: 4px !important; /* Rounded corners */
  padding: 8px 16px !important; /* Padding inside tabs */
  cursor: pointer !important; /* Pointer cursor on hover */
  font-size: 10px !important; /* Adjust font size */
  text-align: center !important; /* Center-align text */
  transition: background-color 0.3s, color 0.3s !important; /* Smooth hover transition */
}

/* Hover effect for tabs */
#horse-detail-popup-2 .popup-tabs .tab button:hover {
  background-color: #e6e6e6 !important; /* Slightly darker background on hover */
  color: #000 !important; /* Darker text color on hover */
}

/* Active tab styling */
#horse-detail-popup-2 .popup-tabs .tab button.active {
  background-color: #4caf50 !important; /* Green background for active tab */
  color: white !important; /* White text for active tab */
  border-bottom: 2px solid #4caf50 !important; /* Active tab indicator */
}

/* Tab content container */
#horse-detail-popup-2 .popup-tabs .tabcontent {
  display: none !important; /* Hide content by default */
  padding: 6px 12px !important; /* Padding inside content */
  border: 1px solid #ccc !important; /* Border around content */
  border-top: none !important; /* Remove top border */
}
.quality-indicator {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 10px; /* Space between title and blocks */
}

.quality-title {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap; /* Prevents title from wrapping */
}

.quality-blocks {
    display: flex;
    gap: 2px; /* Small gap between blocks */
    padding-right: 20px; /* ✅ Add right padding */
}

.quality-month-block {
    width: 25px;
    height: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: white;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
}
        .Poor { background-color: #ff4d4d; }   /* Red */
        .Average { background-color: #ffcc00; color: black; } /* Amber */
        .Good { background-color: #4CAF50; }  /* Green */

.tooltip {
    position: relative;
    cursor: pointer;
}

/* Default Tooltip Styling */
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%; /* ✅ Position tooltip below */
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    font-size: 10px;
    width: 180px; /* ✅ Adjust width as needed */
    white-space: normal; /* ✅ Allow multi-line text */
    text-align: center;
    border-radius: 5px;
    background: black !important; /* ✅ Force black background */
    color: white !important; /* ✅ Force white text */
    border: 1px solid rgba(255, 255, 255, 0.2); /* ✅ Optional subtle border */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

/* Show Tooltip on Hover */
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 🔴 Poor (Black Background, Red Text) */
.tooltip.poor::after {
    color: #ff4d4d !important; /* ✅ Red text */
}

/* 🟡 Average (Black Background, Yellow Text) */
.tooltip.average::after {
    color: #ffcc00 !important; /* ✅ Yellow text */
}

/* 🟢 Good (Black Background, Green Text) */
.tooltip.good::after {
    color: #4CAF50 !important; /* ✅ Green text */
}

/* In your CSS file (e.g., style.css) */
.problem-row {
  background-color: #FF0000 !important; /* Bright Red */
  color: #FFFF00 !important;           /* Yellow text */
}

/* Optional: To ensure text color also applies to links if any within the row */
.problem-row a {
  color: #FFFF00 !important;
}

/* --- VERY SPECIFIC CSS for the Action Buttons within this table --- */
.table td .buttons .button {
  padding: 0.25em 0.5em; /* Smaller vertical and horizontal padding */
  font-size: 0.7rem;    /* Smaller font size */
  line-height: 1;       /* Ensures text fits well */
  height: auto;         /* Allow height to adjust based on padding/font-size */
  margin-bottom: 0 !important; /* Remove bottom margin to reduce vertical spacing */
}

/* Ensure the button container itself is a flex container and doesn't wrap */
.table td .buttons {
    display: flex; /* Make sure it's a flex container */
    flex-wrap: nowrap; /* PREVENT wrapping to the next line */
    gap: 0.25em; /* Add a small gap between buttons (modern alternative to margin-right) */
    align-items: center; /* Vertically align buttons in the middle if they have slightly different heights */
}

/* If gap is not supported or you prefer, use margin-right instead of gap on buttons */
/*
.table td .buttons .button:not(:last-child) {
    margin-right: 0.25em !important;
}
*/