/********************/
/*    PASSWORD      */
/********************/

.input[type="password"] {
    padding-right: 40px; /* Add space for the icon */
    width: 100%;
    box-sizing: border-box;
}

.togglePassword {
    position: absolute; /* Position the icon relative to its parent container */
    right: 10px; /* Adjust as needed */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for exact vertical centering */
    cursor: pointer; /* Change cursor to a pointer when hovering */
    color: #333;
}

/********************/
/*    CALENDAR      */
/********************/

.flatpickr-calendar {
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/********************/
/*    FONT SIZE     */
/********************/

html {
  font-size: 80%; /* Scales everything down from its original size */
}

/********************/
/*    Menu          */
/********************/

/* Base Navbar Items & Links (Always Black text on Primary Background) */
.hero-head .navbar-item, 
.hero-head .navbar-link {
  color: #000000 !important;
}

/* Top-level item hovers (High contrast white background, black text) */
.hero-head .navbar-start > .navbar-item:hover, 
.hero-head .navbar-end > .navbar-item:hover, 
.hero-head .navbar-link:hover {
  color: #000000 !important;
  background-color: #ffffff !important; 
}

/* DESKTOP MENU (Screens over 1024px) */
@media screen and (min-width: 1024px) {
  /* Fix: If a desktop user clicks the menu but moves their mouse away, hide it */
  .hero-head .navbar-item.is-hoverable:focus-within:not(:hover) .navbar-dropdown {
    display: none !important;
  }

  /* Clear Chrome Dark Mode's sticky focus background on desktop when mouse leaves */
  .hero-head .navbar-link:focus:not(:hover) {
    background-color: transparent !important;
    color: #000000 !important;
  }
  
  .hero-head .navbar-dropdown {
    background-color: #ffffff !important; /* Forces dropdown box to be white */
    border: none !important;
    /* Soft, dark shadow that gives the dropdown a "floating" effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; 
  }
}

/* Dropdown internal links (Must be black text on white background) */
.hero-head .navbar-dropdown .navbar-item {
  color: #000000 !important;
  background-color: transparent !important;
}

/* Dropdown internal item hovers */
.hero-head .navbar-dropdown .navbar-item:hover {
  color: #000000 !important;
  background-color: #dcd7d7 !important; /* Slightly off-white hover indicator */
}

/* Dropdown arrow indicator visibility */
.hero-head .navbar-link:not(.is-arrowless)::after {
  border-color: #000000 !important;
}

/* MOBILE BURGER MENU (Screens under 1023px) */
@media screen and (max-width: 1023px) {
  /* Forces the entire expanded mobile menu drawer to have a solid background */
  .hero-head .navbar-menu {
    background-color: #ffffff !important;
    padding: 0.5rem 0;
    box-shadow: none !important;
  }

  .hero-head .navbar-dropdown {
    background-color: #ffffff !important; /* Forces dropdown box to be white */
    box-shadow: none !important;
  }

  /* Explicitly set base and focus states so Chrome Dark Mode doesn't guess */
  .hero-head .navbar-menu .navbar-item,
  .hero-head .navbar-menu .navbar-link,
  .hero-head .navbar-menu .navbar-link:focus {
    background-color: transparent !important; /* Or #ffffff if preferred */
    color: #000000 !important;
  }

  /* High contrast gray hover/tap/active effect for mobile items */
  .hero-head .navbar-menu .navbar-item:hover, 
  .hero-head .navbar-menu .navbar-link:hover,
  .hero-head .navbar-menu .navbar-item:active,
  .hero-head .navbar-menu .navbar-link:active {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
  }
}

/********************/
/*   TOOLTIP ICON   */
/********************/

/* Style the small "i" bubble */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: bold;
    font-family: sans-serif;
    color: white;
    background-color: #3273dc;
    border-radius: 50%;
    cursor: pointer;
}

/* Swapped left centering for a left-aligned offset */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%;             /* Forces it directly above the icon */
    left: -10px;              /* Starts just slightly left of the icon, expanding to the right */
    transform: translateY(5px); 
    background-color: #363636;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.4;
    width: 280px;             
    white-space: normal;      
    z-index: 100;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Moved arrow from center to line up with the left icon position */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;                
    left: 18px;               /* Aligns arrow directly over the "i" circle center */
    border-width: 6px;
    border-style: solid;
    border-color: #363636 transparent transparent transparent;
}

/* Hover interaction matches the cleaner transform rule */
.info-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}


/********************/
/*      CHART       */
/********************/

.chart-container {
    width: 100%;
    /* max-width: 800px; */
    height: 420px;
    max-height: 55vh;
    position: relative;
    display: block;
    overflow: hidden;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.btn-group {
    text-align: center;
    margin-top: 20px;
}
.btn {
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
}
.btn.active {
    background: #007bff;
    color: white;
}

/********************/
/*       ROLL       */
/********************/

.roll-student-list {
    display: flex;
    flex-direction: column;
}

.roll-student-item {
    box-shadow: none !important;
    margin-bottom: 1rem;
}

.roll-student-name {
    display: flex;
    align-items: left;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
