/* --- Dashboard --- */
#summary-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background-color: #25344f;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #7b96c2;
}

.summary-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.summary-value {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #5cb85c;
}

#category-hours-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 50px;
}

#category-hours-summary span {
  background-color: #374e73;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.tracker-actions {
  text-align: right;
  border-top: 1px solid #7b96c2;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* --- Activity List --- */
#activity-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-card {
  background-color: #374e73;
  border-left: 5px solid #7b96c2;
  padding: 1.5rem;
  border-radius: 8px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #7b96c2;
  padding-bottom: 0.5rem;
}

.activity-header h4 {
  margin: 0;
  font-size: 1.3rem;
}

.activity-category {
  background-color: #25344f;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}

.activity-details, .activity-description {
  margin-bottom: 1rem;
}
.activity-details p, .activity-description p {
    margin-bottom: 0.25rem;
}
.activity-description {
    background: #25344f;
    padding: 1rem;
    border-radius: 6px;
    font-style: italic;
}


.activity-actions {
  text-align: right;
}

.empty-message {
  text-align: center;
  padding: 2rem;
  background-color: #25344f;
  border-radius: 8px;
}

/* --- Modal Styles --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #25344f;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #7b96c2;
  text-align: left;
  max-width: 700px;
  width: 90%;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
#confirm-delete-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

@media (max-width: 768px) {
  #summary-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Button Color Overrides --- */
#add-activity-btn {
  background-color: #5cb85c; /* Green */
  color: #E1E1E1;
}
#add-activity-btn:hover {
  background-color: #4a9d4a;
}

#export-pdf-btn {
  background-color: #8a63d2; /* Purple */
  color: #E1E1E1;
}
#export-pdf-btn:hover {
  background-color: #724bb8;
}

#danger-btn, .danger-btn {
  background-color: #d9534f; /* Red */
  color: #E1E1E1;
}
#danger-btn:hover, .danger-btn:hover {
  background-color: #c9302c;
  color: #E1E1E1;
}