/* C4D2HOU Settings - Apple-inspired styling */

/* Main Actions Grid */
.main-actions {
  margin: 2rem 0 3rem 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.action-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #2B2B2B08;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-item:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.action-item.active {
  background: #0066cc10;
  border-color: #d0d0d0;
}

.action-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.action-icon img {
  width: 2rem;
  height: 2rem;
  display: block;
  margin: 0 auto;
}

.action-icon .active-icon {
  display: none;
}

.action-item.active .action-icon .default-icon {
  display: none;
}

.action-item.active .action-icon .active-icon {
  display: block;
}

.action-item strong {
  display: block;
  font-size: 0.875rem;
  color: #2B2B2B;
  font-weight: 600;
}

/* Action Explanations */
.action-explanation {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 100px;
  border: 1px solid #e5e5e5;
}

.explanation {
  display: none;
}

.explanation.active {
  display: block;
}

.explanation h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #1d1d1f;
  font-size: 1.125rem;
  font-weight: 600;
}

.explanation p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.5;
}

/* Settings Container */
.settings-container {
  background: #fafafa;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #e5e5e5;
}

.setting-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-row.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .setting-row.two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.setting-group {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.setting-label {
  flex: 0 0 140px;
  font-weight: 600;
  color: #1d1d1f;
  font-size: 0.9375rem;
}

.setting-control {
  flex: 1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Dropdowns */
.dropdown-container {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.dropdown-toggle {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  text-align: left;
  font-size: 0.9375rem;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  background: #f5f5f5;
  border-color: #c0c0c5;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Input Fields */
.text-input,
.number-input {
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.text-input {
  flex: 0 0 100px;
}

.number-input {
  width: 100px;
}

.text-input:hover,
.number-input:hover {
  border-color: #c0c0c5;
}

.text-input:focus,
.number-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Reset Button */
.reset-button {
  margin-left: auto;
  padding: 0.625rem 1.25rem;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-button:hover {
  background: #0051a8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.reset-button:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .settings-container {
    padding: 1.5rem;
  }
  
  .setting-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .setting-label {
    flex: none;
    margin-bottom: 0.5rem;
  }
  
  .setting-control {
    width: 100%;
  }
  
  .dropdown-container {
    max-width: none;
  }
  
  .setting-row.two-column .setting-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .setting-row.two-column .setting-label {
    margin-bottom: 0.5rem;
  }
}