:root {
  --acs-primary: #ff6124;
  --acs-text: #3b4051;
  --acs-bg: #fff;
  --acs-card-radius: 12px;
  --acs-card-shadow: 0 2px 8px rgba(59, 64, 81, 0.06);
  --acs-border: #ccc;
}

body.acs-dashboard {
  background: var(--acs-bg);
  color: var(--acs-text);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
}

.acs-card {
  background: var(--acs-bg);
  border-radius: var(--acs-card-radius);
  box-shadow: var(--acs-card-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #f5f5f5;
}

.acs-btn-primary {
  background: var(--acs-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.acs-btn-primary:hover {
  background: #ff7a47;
}

.acs-heading {
  color: var(--acs-text);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.acs-label {
  color: var(--acs-text);
  font-weight: 500;
}

input[type="text"], input[type="number"], select, textarea {
  border: 1px solid var(--acs-border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #fafbfc;
  color: var(--acs-text);
  margin-bottom: 1rem;
}

.acs-modal {
  background: var(--acs-bg);
  border-radius: var(--acs-card-radius);
  box-shadow: var(--acs-card-shadow);
  padding: 2rem;
  border: 1px solid #eee;
}

.acs-loader {
  background: rgba(255, 97, 36, 0.08);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Weekly activities row for coach dashboard */
#acs-activity-days > div {
  display: block;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
#acs-activity-days label.acs-label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  height: 100%;
}
#acs-activity-days input[type="text"],
#acs-activity-days input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  height: 40px;
  display: flex;
  align-items: center;
}
.acs-input {
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out;
}

.acs-input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.acs-btn-secondary {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  transition: background-color 0.15s ease-in-out;
}
button#mentee-analytics-reset:hover {
    background: #ff6225 !important;
    color: #fff;
}
.acs-btn-secondary:hover {
  background-color: #5a6268 !important;
}
/* Training Plan Creation Styles - Updated */

.acs-day-container { 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    background: #fff;
}

.acs-day-header { 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
    color: #333;
}

.acs-activity-item { 
    background: #f9f9f9; 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    padding: 0.75rem; 
    margin-bottom: 0.75rem; 
    position: relative;
}
.acs-btn-primary.acs-score-btn:hover {
    color: #fff;
}
.acs-btn-primary:hover {
    background-color: #0056b3 !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.acs-btn-secondary:hover {
    background-color: #5a6268 !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#plan-day-selector-<?php echo $plan->id; ?> label:hover {
    color: #007bff;
}

input[type="date"]:focus {
    outline: none;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.acs-activity-grid { 
    display: grid; 
    grid-template-columns: 1fr 80px 80px 80px; 
    gap: 0.5rem; 
    align-items: end;
    margin-bottom: 0.75rem;
}

.acs-remove-activity { 
    background: #dc3545; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 32px;
    height: 32px;
    cursor: pointer; 
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
select#mentee-analytics-select {
    margin-bottom: 0px;
}
.acs-remove-activity:hover { 
    background: #c82333; 
}

.acs-add-activity { 
    background: #28a745; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 32px;
    height: 32px;
    cursor: pointer; 
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
#acs-analytics-charts {
    transition: opacity 0.3s ease;
}

#acs-analytics-info {
    padding: 2rem;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.acs-date-input:focus {
    outline: none;
    border-color: #ff6124 !important;
    box-shadow: 0 0 0 0.2rem rgba(255,97,36,.25);
}

.acs-btn-primary:hover {
    background-color: #e54a0e !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.acs-btn-secondary:hover {
    background-color: #5a6268 !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}
.acs-add-activity:hover { 
    background: #218838; 
}

.acs-activity-note { 
    width: 100%; 
    padding: 0.5rem; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    resize: vertical;
    background: #f8f9fa;
}

.acs-button-container { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.acs-label { 
    display: block; 
    font-weight: 500; 
    margin-bottom: 0.25rem; 
    color: #555;
}

.acs-input { 
    width: 100%; 
    padding: 0.5rem; 
    border: 1px solid #ddd; 
    border-radius: 4px;
}

.acs-btn-primary {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.acs-btn-primary:hover {
    background: #005a87;
}

@media (max-width: 600px) {
  #acs-activity-days > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  #acs-activity-days label.acs-label {
    margin-bottom: 0.25rem;
  }
  #acs-activity-days input[type="text"],
  #acs-activity-days input[type="number"] {
    height: 38px;
  }
}
