/* Basic Page Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

h1, h2 {
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
}

.section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 15px;
  background-color: #eee;
  border-radius: 6px;
  overflow: hidden;
}

.tab-button {
  background: none;
  border: none;
  color: #555;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-button:hover {
  background-color: #ddd;
}

.tab-button.active {
  background-color: #ccc;
  color: #333;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Today’s Focus */
#focusInput {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Task List */
#taskList {
  margin-top: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.task-item:last-child {
  border-bottom: none;
}

.task-item input[type="checkbox"] {
  margin-right: 10px;
}

.completed {
  text-decoration: line-through;
  color: #777;
}

#addTaskBtn {
  background-color: #5cb85c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

#addTaskBtn:hover {
  background-color: #4cae4c;
}

/* Metrics */
#metricsSection {
  text-align: center;
}

.metrics-box {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 10px;
  display: inline-block;
}

/* Ask AI Button */
#askAI {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

#askAI:hover {
  background-color: #0056b3;
}

/* AI Suggestions */
#aiSuggestionsSection {
  text-align: center;
}

#suggestionsContainer {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 4px;
  margin-top: 10px;
}

/* Weekly Ops Ritual */
#weeklyOpsTab ol {
  list-style-type: decimal;
  padding-left: 20px;
}

#weeklyOpsTab li {
  margin-bottom: 10px;
}

#weeklyOpsTab strong {
  font-weight: bold;
}

#weeklyOpsTab ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 5px;
}
/* Basic Modal Styles (Customize as needed) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  text-align: center;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-content input[type="text"],
.modal-content textarea,
.modal-content select,
.modal-content input[type="date"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  float: right; /* Or center, as you prefer */
}

.modal-content button[type="submit"]:hover {
  background-color: #45a049;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Task Item Buttons */
.task-item {
  /* Ensure flex is still applied if you didn't have it */
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.task-item span {
  flex-grow: 1; /* Allow text to take up available space */
  margin-left: 10px; /* Space after checkbox */
  margin-right: 10px; /* Space before buttons */
}

.task-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em; /* Adjust as needed */
  padding: 2px 5px;
  margin-left: 5px;
  border-radius: 3px;
}

.edit-btn {
  color: #007bff; /* Blue */
}
.edit-btn:hover {
  background-color: #e7f3ff;
}

.delete-btn {
  color: #dc3545; /* Red */
}
.delete-btn:hover {
  background-color: #f8d7da;
}
/* Metrics Grid Layout */
#metricsSection h2 span {
  font-weight: normal; /* Display project title less prominently */
  color: #555;
}

.metrics-grid {
  display: flex; /* Or grid */
  flex-wrap: wrap;
  justify-content: center; /* Or space-around */
  gap: 15px; /* Space between boxes */
  margin-top: 15px;
}

.metrics-box {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px 15px;
  border-radius: 4px;
  /* Removed display: inline-block; */
  min-width: 120px; /* Ensure boxes have some width */
  text-align: center;
}

.metrics-box strong {
    display: block; /* Put label on its own line */
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #333;
}

.metrics-box span {
    font-size: 1.4em;
    font-weight: bold;
    color: #0056b3; /* Example color */
}

#overdueCount { /* Style overdue count specifically */
    color: #dc3545; /* Red */
}