/* Quick Log Dark Theme - Mobile First - UPDATED */

/* Dashboard Container & List */
.dashboard-container {
  background-color: #f0f0f0; /* Keeping main background light/neutral, cards will be dark */
  padding: 10px;
}

[data-theme="dark"] .dashboard-container {
  background-color: #000;
}

.dashboard-exercise-list {
  padding: 0;
  gap: 10px; /* Reduced gap */
}

/* Exercise Card */
.dashboard-row {
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 12px;
  padding: 12px; /* Reduced padding */
  margin-bottom: 12px; /* Reduced margin */
  color: #ffffff !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.dashboard-row:hover {
  border-color: #FF6B00 !important;
  box-shadow: 0 0 0 1px #FF6B00;
}

.dashboard-row.completed {
  border-color: #10b981 !important; /* Green for fully completed */
}

/* Header Section */
.dashboard-row-info {
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.dashboard-exercise-name {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.dashboard-exercise-details {
  color: #a0a0a0 !important;
  font-size: 0.85rem;
}

/* Sets Container */
.dashboard-sets-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Individual Set Row */
.dashboard-set-row {
  display: grid;
  grid-template-columns: 25px 1fr 1fr 30px; /* Set# Weight Reps Checkbox */
  gap: 8px;
  align-items: center;
  background-color: transparent !important; /* Ensure transparent to show card bg */
}

.dashboard-set-number {
  color: #FF6B00 !important;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
}

/* Inputs */
.dashboard-weight-input,
.dashboard-reps-input {
  background-color: #2a2a2a !important;
  border: 1px solid #FF6B00 !important;
  color: #ffffff !important;
  padding: 8px;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 40px; /* Touch target size */
}

.dashboard-weight-input::placeholder,
.dashboard-reps-input::placeholder {
  color: #888 !important;
  font-size: 0.8rem;
}

.dashboard-weight-input:focus,
.dashboard-reps-input:focus {
  outline: none;
  background-color: #333 !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.5) !important;
  border-color: #FF6B00 !important;
}

/* Checkbox */
.dashboard-complete-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #FF6B00;
  border: 1px solid #FF6B00 !important;
  border-radius: 4px;
  background-color: #2a2a2a !important;
}

/* Action Section (Details Button) */
.dashboard-row-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.dashboard-details-btn {
  background-color: transparent !important;
  color: #FF6B00 !important;
  border: 1px solid #FF6B00 !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dashboard-details-btn:hover {
  background-color: rgba(255, 107, 0, 0.1) !important;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .dashboard-row {
    padding: 10px;
  }

  .dashboard-set-row {
    gap: 6px;
  }

  .dashboard-weight-input,
  .dashboard-reps-input {
    padding: 6px;
    font-size: 0.9rem;
  }
}
