.timerRow {
  display: flex;
  gap: 20px;
  align-items: center;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Use full viewport height */
  background-color: #f4f4f4;
  margin: 0;
}

.japa-container {
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure space between sections */
}

.timer {
  font-size: 48px;
  padding-bottom: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.laps {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 12rem; /* Adjust for better balance */
  margin-bottom: 10px;
  padding-right: 10px; /* Add padding for scroll bar visibility */
}

.data-input-buttons,
.data-save-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0; /* Equal margin for consistency */
}

.data-input-buttons button,
.data-save-buttons button {
  padding: 10px 20px; /* Slightly larger padding for better touch targets */
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.data-input-buttons button:hover,
.data-save-buttons button:hover {
  transform: scale(1.05);
}

.data-input-buttons button.start,
.data-save-buttons button.start {
  background-color: #4caf50;
  color: white;
}

.data-input-buttons button.lap {
  background-color: #2196f3;
  color: white;
}

.data-save-buttons button.reset {
  background-color: #ffc107;
  color: white;
}

.data-save-buttons button.stop {
  background-color: #f44336;
  color: white;
}

.laps div {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.laps div:nth-child(even) {
  background-color: #e6e6e6;
}

.laps div:hover {
  background-color: #dcdcdc;
}

.lap-time {
  font-weight: bold;
}

.lap-quality {
  font-style: italic;
}

/* Popup styles */
.popup,
.password-popup,
.scale-popup,
.success-popup,
.stats-popup,
.confirm-popup,
.japa-prev-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content,
.confirm-popup-content,
.password-popup-content,
.scale-popup-content,
.success-popup-content,
.stats-popup-content,
.japa-prev-popup-content,
.main-container-content {
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 21rem;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content h2,
.confirm-popup-content h2,
.password-popup-content h2,
.scale-popup-content h2,
.success-popup-content h2,
.stats-popup-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.popup-content input[type="text"],
.password-popup-content input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.popup-content input[type="date"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.popup-content label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-weight: bold;
}

.popup-content label.required::after {
  content: " *";
  color: red;
}

.popup-content button,
.confirm-popup-content button,
.password-popup-content button,
.scale-popup-content button,
.success-popup-content button,
.stats-popup-content button {
  width: 100%;
  padding: 10px 0;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.popup-content .green,
.confirm-popup-content .green {
  background-color: #4caf50;
  color: white;
}

.popup-content .purple,
.japa-container .purple,
.confirm-popup-content .purple {
  background-color: #6a0dad;
  color: white;
}

.popup-content .blue,
.japa-container .blue,
.confirm-popup-content .blue {
  background-color: #2196f3;
  color: white;
}

.popup-content .green:disabled {
  background-color: #a5d6a7; /* Lighter color to indicate disabled state */
  color: #c8e6c9; /* Light color for text when disabled */
  cursor: not-allowed; /* Shows a not-allowed cursor to indicate it cannot be clicked */
}

.password-popup-content .green {
  background-color: #4caf50;
  color: white;
}

.success-popup-content .green {
  background-color: #4caf50;
  color: white;
}

.popup-content .red,
.confirm-popup-content .red {
  background-color: #f44336;
  color: white;
}
.password-popup-content .red {
  background-color: #f44336;
  color: white;
}

.scale-popup-content .enter {
  background-color: #4caf50;
  color: white;
}
.scale-popup-content .red {
  background-color: #f44336;
  color: white;
}

.stats-popup-content .red {
  background-color: #f44336;
  color: white;
}

/* Radio buttons */
.scale-popup-content .radio-group {
  display: inline-block;
  margin: 5% 0;
}

.scrollable-content {
  padding-right: 10px; /* Optional: Adds some space to the right for scroll bar */
  padding-left: 10px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 100vh; /* Adjust for better balance */
  min-height: 70vh;
  margin-bottom: 10px;
}

.scrollable-content-table {
  padding-right: 10px; /* Optional: Adds some space to the right for scroll bar */
  flex-grow: 1;
  overflow-y: auto;
  max-height: 60vh; /* Adjust for better balance */
  margin-bottom: 10px;
}

.radio-group input[type="radio"] {
  margin-right: 5px; /* Space between radio button and label */
}

@media screen and (max-width: 600px) {
  .popup-content,
  .password-popup-content,
  .scale-popup-content {
    padding: 15px;
  }

  .popup-content h2,
  .password-popup-content h2,
  .scale-popup-content h2 {
    font-size: 1.5rem;
  }

  .japa-container {
    width: 100%; /* Utilize the full width on mobile */
    padding: 10px; /* Reduce padding for smaller screens */
  }

  .timer {
    font-size: 36px; /* Adjust font size for better fit */
    text-align: center;
  }

  .data-input-buttons button,
  .data-save-buttons button {
    padding: 8px 12px; /* Adjust padding for better spacing */
    font-size: 16px; /* Reduce font size */
  }

  .laps div {
    padding: 8px; /* Adjust padding for list items */
    margin-bottom: 8px; /* Adjust margin for list items */
  }
}

/** Report CSS **/

.reportDiv {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 13rem; /* Adjust for better balance */
  margin-bottom: 10px;
  padding-right: 10px; /* Add padding for scroll bar visibility */
}

.reportDiv div {
  display: flex;
  justify-content: space-between;
  padding: 5px;
  margin-bottom: 5px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  font-size: 16px;
  font-family: monospace;
}

.reportDiv div:nth-child(even) {
  background-color: #e6e6e6;
}

.reportDiv div:hover {
  background-color: #dcdcdc;
}

/* Contact Information Styling */
.contact-info {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
  font-weight: bold;
  background: #fff3cd; /* Light yellow background */
  border-radius: 8px;
  border: 1px solid #ffc107; /* Yellow border */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 20rem;
  padding: 0px 8px;
}

.download {
  background-color: #4caf50; /* Green background */
  color: white; /* White text */
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.download:hover {
  background-color: #45a049; /* Darker green on hover */
}

/* Add to your Stylesheet.css */
#loadingSpinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Ensure it's on top of other content */
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey background */
  border-top: 8px solid #3498db; /* Blue spinner */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.japa-time-message {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  color: #333;
  background-color: #4caf50; /* Soft green */
  border: 1px solid #2e512f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for a subtle effect */
  max-width: 20rem;
}

.created-by {
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  color: #333;
  background-color: #4caf50; /* Dark teal background */
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #2e512f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for a subtle effect */
  max-width: 20rem;
}

.created-by a {
  color: #ffeb3b; /* Yellow link color */
  text-decoration: underline;
}

.created-by a:hover {
  color: #ffc107; /* Slightly darker yellow on hover */
}

label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-weight: bold;
}

label.required::after {
  content: " *";
  color: red;
}

input {
  width: 94%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

button {
  width: 100%;
  padding: 10px 0;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cancel-button {
  background-color: #f44336;
  color: white;
}

.submit-button {
  background-color: #4caf50;
  color: white;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
.collection-table-container::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
  height: 10px; /* Height for horizontal scrollbar */
}

.collection-table-container::-webkit-scrollbar-track {
  background: #f1f8e9; /* Background of the scrollbar track */
  border-radius: 10px;
}

.collection-table-container::-webkit-scrollbar-thumb {
  background-color: #66bb6a; /* Color of the scrollbar handle */
  border-radius: 10px;
  border: 2px solid #f1f8e9; /* Adds some space around the thumb */
}

.collection-table-container::-webkit-scrollbar-thumb:hover {
  background-color: #4caf50; /* Darker color on hover */
}

/* Firefox Scrollbar */
.collection-table-container {
  scrollbar-color: #66bb6a #f1f8e9; /* Thumb and track colors */
}

/* Optional: Style for horizontal scrollbar if needed */
.collection-table-container::-webkit-scrollbar-horizontal {
  height: 8px;
}

/* Customize track and thumb for horizontal scrollbar */
.collection-table-container::-webkit-scrollbar-track-horizontal {
  background: #f1f8e9;
}

.collection-table-container::-webkit-scrollbar-thumb-horizontal {
  background-color: #66bb6a;
  border-radius: 10px;
  border: 2px solid #f1f8e9;
}

.table-header {
  position: sticky;
  top: 0;
  z-index: 1; /* Ensure the header stays on top of the table rows */
}

/* Container for the select dropdown */
.selectContainer {
  position: relative;
  display: inline-block;
  width: 100%;
}

select {
  padding: 10px 40px 10px 20px; /* Space for custom arrow */
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: transform 0.3s;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 10px 0;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Style for the custom dropdown arrow */
select::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 6px solid #333;
  pointer-events: none;
  max-height: 200px; /* Adjust the height of the dropdown */
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure dropdown does not overflow the container */
.selectContainer select {
  position: relative;
  z-index: 1;
}

select:focus {
  outline: none;
}

select option {
  background-color: white;
  color: #333;
  padding: 10px;
  border: 1px solid #ccc;
  max-width: 100%;
}

/* Style for the fieldset */
fieldset {
  border: 2px solid #d3d3d3; /* Custom border for better visibility */
  padding: 10px;
  margin-top: 20px; /* Space above the fieldset */
}

/* Style for the legend */
legend {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding: 0 10px; /* Add padding around the text */
  text-align: left;
}

/* Styles for each checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

/* Style the custom checkbox */
.checkbox-label input[type="checkbox"] {
  margin-right: 10px; /* Space between checkbox and label text */
  accent-color: #333;
  width: 16px;
  height: 16px;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Use full viewport height */
  background-color: #f4f4f4;
  margin: 0;
}

.collection-table-container {
  overflow: auto;
  max-width: 400px;
  margin-bottom: 1rem;
}

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

thead {
  background-color: #66bb6a;
  color: #fff;
}

th {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap;
}
td {
  padding: 12px;
  border: 1px solid #ddd;
  white-space: nowrap;
}

/* Alternating row colors */
tbody tr:nth-child(odd) {
  background-color: #e8f5e9;
}

tbody tr:nth-child(even) {
  background-color: #f1f8e9;
}

@media (max-width: 600px) {
  th,
  td {
    padding: 8px;
    font-size: 16px;
  }
}

.table-container {
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 20rem;
  display: none;
  flex-direction: column;
  justify-content: space-between; /* Ensure space between sections */
}

.popup .linkButton {
  background: none;
  border: none;
  color: #2196f3;
  text-decoration: underline;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 0px;
  display: flex;
}

.popup .linkButton-flexEnd {
  background: none;
  border: none;
  color: #2196f3;
  text-decoration: underline;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 0px;
  display: flex;
  justify-content: flex-end;
}

.popup .slateGray {
  color: #6c757d;
}

.liveSearchContainer {
  position: relative;
  display: inline-block;
  width: 100%;
}

.liveSearchContainer select {
  position: relative;
  z-index: 1;
}

.popup .liveSearch {
  margin-bottom: 1px !important;
}

.popup .liveSearchUL {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: none;
  position: absolute;
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  max-height: 14rem;
  overflow-y: auto;
  z-index: 2;
  box-sizing: border-box;
}

.popup .liveSearchUL li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.popup .liveSearchUL li:hover {
  background-color: #f0f0f0;
}

.popup-content img {
  max-width: 100%; /* Ensure the image resizes within the container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Optional: Add rounded corners to the image */
}

.infoPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.infoPopup-content {
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 21rem;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Icons */
.infoPopup-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto; /* Center the icon horizontally */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Ensure the image doesn't repeat */
}
.infoPopup-content img {
  max-width: 100%; /* Ensure the image resizes within the container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Optional: Add rounded corners to the image */
}

.infoPopup-icon.success {
  background-image: url("https://i.postimg.cc/jSZsPbth/checked-icon.png"); /* Add success icon path */
  background-size: cover;
}

.infoPopup-icon.error {
  background-image: url("https://i.postimg.cc/TP1Tc4Pv/cancel-icon.png"); /* Add error icon path */
  background-size: cover;
}

.infoPopup-heading.success {
  color: #45a049;
}

.infoPopup-heading.error {
  color: #ff3636;
}

.infoPopup-content .green {
  background-color: #45a049;
  color: white;
}

.infoPopup-content .red {
  background-color: #ff3636;
  color: white;
}

/* Message */
.infoPopup-message {
  font-size: 20px;
  color: #555;
  font-weight: bold;
  margin-bottom: 20px;
}

.highlight {
  color: #2196f3; /* Default text color */
  animation: blink-animation 2s infinite; /* Trigger the blinking animation */
}

@keyframes blink-animation {
  0% {
    background-color: #45a049;
  }
  50% {
    background-color: transparent;
  }
  100% {
    background-color: #45a049;
  }
}

.download-icon-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
  margin-top: 10px;
  margin-right: 5px;
}

.download-icon {
  width: 25px; /* Set width of the icon */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer; /* Change cursor on hover */
}

/* Navbar styling */

.navbar {
  background-color: #333;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  border-radius: 8px;
  margin-bottom: 20px;
}

.navbar a {
  flex: 1;
  color: white;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 16px;
}

.navbar a:hover {
  background-color: #575757;
}

.navbar a.active {
  background-color: #04aa6d; /* Green */
}

/* Sections inside popup */
.section {
  display: none;
  margin-top: 10px;
  padding: 10px;
}
.navbar-container {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
}

/* Arrow icons */
.arrow {
  width: 30px;
  height: 30px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 375px) {
  .navbar a {
    font-size: 16px;
    padding: 12px 8px;
  }

  .navbar {
    flex-direction: column;
  }
}

/* Navbar styling End */

@media only screen and (max-width: 375px) and (max-height: 812px) {
  .radio-container-scroll {
    padding-right: 10px;
    padding-left: 10px;
    flex-grow: 1;
    overflow-y: auto; /* Keep vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-height: 24rem;
    margin-bottom: 10px;
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
  }
}
