/* Example reset for form elements */
input[type="text"],
button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.app-container {
  font-family: 'Arial', sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.add-routine {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.input-field {
  padding: 10px;
  font-size: 16px;
  border: 2px solid #0DAB76;
  border-radius: 5px;
  outline: none;
}

.input-field:focus {
  border-color: #096C4B;
}

.add-button {
  padding: 10px;
  font-size: 16px;
  background-color: #0DAB76;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-button:hover {
  background-color: #096C4B;
}

.routine-list {
  list-style-type: none;
  padding: 0;
}

.routine-item {
  background-color: #F0F0F0;
  border: 1px solid #DDD;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
}

.routine-item h3 {
  margin-top: 0;
}

.routine-item p {
  margin-bottom: 0;
}

.detail-view-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensures the backdrop is above everything else */
}

.routine-detail {
  position: relative;
  background-color: #FFF;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  z-index: 1001; /* Ensures the detail view is above the backdrop */
}

.routine-detail button {
  /* Style the close button appropriately */
  display: block;
  margin: 0 auto 0;
  padding: 10px 20px;
  font-size: 16px;
}
.routine-item {
  position: relative;
  background-color: #F0F0F0;
  border: 1px solid #DDD;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
}

.remove-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  color: #FF4136;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.remove-button:hover {
  color: #E82C0C;
}

.close-detail-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  color: #333; /* A neutral color, but you can choose any */
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.close-detail-button:hover {
  color: #777; /* Darker or different color on hover */
}

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

th, td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Form and table container styles */
.form-container, .table-container {
  margin-bottom: 20px;
}

/* Input field styling */
input[type="text"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Button styling to match the table style */
button {
  background-color: #4CAF50; /* Green background */
  color: white;
  padding: 10px 15px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

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

/* Aligns form elements horizontally for a more compact layout */
.form-row {
  display: flex;
  gap: 10px;
  align-items: center; /* This should vertically align the items if they are of different heights */
}


.form-row > div {
  flex: 1;
}

.button-container {
  margin-top: 10px; /* Adjust spacing above the button as needed */
  display: flex;
  justify-content: center; /* Center the button horizontally */
}

button {
  background-color: #4CAF50; /* Green background */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049; /* Darker green on hover */
}
.form-row {
  display: flex;
  gap: 10px; /* Adjusts the space between form elements */
  align-items: center; /* Aligns the button vertically with the inputs */
}

input[type="text"] {
  flex-grow: 1; /* Allows input fields to fill the available space */
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  padding: 8px 12px; /* Adjust padding to ensure the button is not too large */
  background-color: #4CAF50; /* Use your app's accent color */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px; /* Ensures the [ + ] symbol is clearly visible */
}

button:hover {
  background-color: #45a049; /* Slightly darker shade on hover */
}
button {
  margin: 0; /* Reset default margin */
  padding: 8px 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button {
  margin: 0; /* Ensure no default margin */
  padding: 8px 12px; /* Custom padding */
  background-color: #4CAF50; /* Accent color */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px; /* Clear visibility of the symbol */
  align-self: center; /* Ensure alignment within flex container */
}

.total-duration {
  margin-top: 15px;
  font-weight: bold;
  text-align: right; /* Aligns the total duration to the right for a cleaner look */
}

.timer-display {
  text-align: center;
  font-size: 24px; /* Large font for visibility */
  margin: 10px 0;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 10px; /* Space between buttons */
}

.highlight-task {
  background-color: #4CAF50; /* Green background for the highlighted task */
  color: white; /* White font color for better readability */
}

.highlight-task a {
  color: #FFF; /* Ensures links are also white for consistency */
  text-decoration: underline; /* Optional: makes it clear they are clickable */
}

/* Highlighted task styling */
.highlight-task {
  background-color: #4CAF50; /* Green background */
  color: white; /* White text for high contrast */
  /* Add additional styling as needed */
}

/* Adjust the hover state for .highlight-task */
.highlight-task:hover {
  background-color: #388E3C; /* Darker shade of green for the hover state */
  color: white; /* Keep text color white for contrast */
}

/* Styling links within the highlighted task for consistency */
.highlight-task a {
  color: white;
  text-decoration: underline;
}

/* Ensure links within the highlighted task also change appropriately on hover */
.highlight-task a:hover {
  color: #CCFF90; /* Lighter green or another contrasting color for links on hover */
  text-decoration: underline;
}
