/* ============================================================================
   GOALS STYLES
   ============================================================================ */

/* Goals Container */
.goals-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

/* Goals Header */
.goals-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.goals-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cosmic-white);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.goals-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.goals-header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.new-goal-btn {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  display: inline-block;
}

.new-goal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* Goal Sections */
.goal-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cosmic-white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* Goals Grid */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Goal Card */
.goal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.goal-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cosmic-white);
  flex: 1;
  margin-right: 1rem;
}

.goal-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.goal-status-active {
  background: rgba(102, 187, 106, 0.2);
  color: #66bb6a;
  border: 1px solid #66bb6a;
}

.goal-status-completed {
  background: rgba(66, 165, 245, 0.2);
  color: #42a5f5;
  border: 1px solid #42a5f5;
}

.goal-status-paused {
  background: rgba(255, 167, 38, 0.2);
  color: #ffa726;
  border: 1px solid #ffa726;
}

.goal-status-cancelled {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
  border: 1px solid #ef5350;
}

.goal-card-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Goal Progress */
.goal-progress {
  margin-bottom: 1rem;
}

.goal-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.goal-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.goal-progress-blue { background: #42a5f5; }
.goal-progress-green { background: #66bb6a; }
.goal-progress-red { background: #ff6b6b; }
.goal-progress-orange { background: #ffa726; }
.goal-progress-yellow { background: #ffd54f; }
.goal-progress-purple { background: #ab47bc; }
.goal-progress-pink { background: #ec407a; }
.goal-progress-gray { background: #9e9e9e; }

/* Goal Details */
.goal-details {
  margin-bottom: 1rem;
}

.goal-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.goal-detail-row:last-child {
  border-bottom: none;
}

.goal-detail-row span:last-child {
  font-weight: 600;
  color: var(--cosmic-white);
}

/* Goal Card Actions */
.goal-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.goal-action-link {
  color: #42a5f5;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.goal-action-link:hover {
  color: #64b5f6;
}

.goal-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.goal-action-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.goal-action-complete {
  color: #66bb6a;
  border: 1px solid #66bb6a;
}

.goal-action-complete:hover {
  background: rgba(102, 187, 106, 0.1);
}

.goal-action-pause {
  color: #ffa726;
  border: 1px solid #ffa726;
}

.goal-action-pause:hover {
  background: rgba(255, 167, 38, 0.1);
}

.goal-action-reopen,
.goal-action-resume {
  color: #42a5f5;
  border: 1px solid #42a5f5;
}

.goal-action-reopen:hover,
.goal-action-resume:hover {
  background: rgba(66, 165, 245, 0.1);
}

.goal-action-edit {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.goal-action-edit:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cosmic-white);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cosmic-white);
  margin-bottom: 0.5rem;
}

.empty-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

/* ============================================================================
   GOAL FORM STYLES
   ============================================================================ */

.goal-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Goal Type Selection */
.goal-type-selection {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.goal-type-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 3px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.goal-type-option::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: none;
}

.goal-type-option:hover {
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.goal-type-option:hover::before {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.goal-type-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.goal-type-option.selected::before {
  border-color: #667eea;
  background: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.goal-type-option.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  z-index: 1;
  pointer-events: none;
}

.goal-type-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.goal-type-content {
  flex: 1;
}

.goal-type-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cosmic-white);
  margin-bottom: 0.25rem;
}

.goal-type-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Conditional Fields */
.conditional-fields {
  margin-top: 2rem;
}

.form-section-header {
  margin-bottom: 1.5rem;
}

.form-section-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cosmic-white);
  margin-bottom: 0.5rem;
}

.form-section-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Project Checkboxes */
.project-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.5);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-text {
  color: var(--cosmic-white);
  font-size: 0.875rem;
}

/* Form Help Text */
.form-help {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Form Errors */
.form-errors {
  background: rgba(239, 83, 80, 0.1);
  border: 2px solid #ef5350;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.form-errors h3 {
  color: #ef5350;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-errors li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .goal-type-selection {
    grid-template-columns: 1fr;
  }
  
  .form-field-group {
    grid-template-columns: 1fr;
  }
}
