/**
 * Hours Selector Modal Styling
 * Part of TGS (Temporal Grounding System)
 */

.hours-selector-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.hours-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hours-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #00ff41;
  border-radius: 12px;
  padding: 30px;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.hours-modal-content h2 {
  margin: 0 0 10px 0;
  color: #00ff41;
  font-size: 28px;
  text-align: center;
}

.hours-subtitle {
  text-align: center;
  color: #aaa;
  margin: 0 0 30px 0;
  font-size: 14px;
}

.hours-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.hours-section:last-of-type {
  border-bottom: none;
}

.hours-section h3 {
  color: #00ff41;
  font-size: 18px;
  margin: 0 0 15px 0;
}

/* Presets */
.hours-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.preset-btn {
  background: #2a2a3e;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.preset-btn:hover {
  border-color: #00ff41;
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
}

.preset-name {
  color: #00ff41;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.preset-hours {
  color: #ffd700;
  font-size: 13px;
  margin-bottom: 4px;
}

.preset-desc {
  color: #aaa;
  font-size: 11px;
}

/* Custom Hours */
.hours-custom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hours-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.hours-input-group label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-input-group label span {
  color: #aaa;
  font-size: 13px;
}

.hours-input-group input[type="time"] {
  background: #2a2a3e;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  color: #00ff41;
  font-size: 16px;
  font-family: 'Courier New', monospace;
}

.hours-input-group input[type="time"]:focus {
  outline: none;
  border-color: #00ff41;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

/* Days Selector */
.hours-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hours-days > span {
  color: #aaa;
  font-size: 13px;
}

.days-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.day-checkbox {
  position: relative;
  cursor: pointer;
}

.day-checkbox input {
  position: absolute;
  opacity: 0;
}

.day-checkbox span {
  display: inline-block;
  padding: 8px 12px;
  background: #2a2a3e;
  border: 2px solid #444;
  border-radius: 6px;
  color: #aaa;
  font-size: 12px;
  transition: all 0.2s ease;
}

.day-checkbox input:checked + span {
  background: #00ff41;
  border-color: #00ff41;
  color: #000;
  font-weight: bold;
}

.day-checkbox:hover span {
  border-color: #00ff41;
}

/* Lunch Options */
.lunch-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lunch-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #2a2a3e;
  border: 2px solid #444;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lunch-option:hover {
  border-color: #00ff41;
}

.lunch-option.selected {
  border-color: #00ff41;
  background: #333;
}

.lunch-option input[type="radio"] {
  margin-top: 3px;
  accent-color: #00ff41;
}

.lunch-content {
  flex: 1;
}

.lunch-name {
  color: #00ff41;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.lunch-desc {
  color: #aaa;
  font-size: 12px;
  margin-bottom: 4px;
}

.lunch-impact {
  color: #ffd700;
  font-size: 11px;
}

.lunch-time-picker {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.lunch-time-picker label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lunch-time-picker label span {
  color: #aaa;
  font-size: 13px;
}

.lunch-time-picker input[type="time"] {
  background: #2a2a3e;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  color: #00ff41;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

.lunch-time-picker input[type="time"]:focus {
  outline: none;
  border-color: #00ff41;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

/* Impact Summary */
.hours-impact {
  background: #2a2a3e;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.impact-label {
  color: #aaa;
  font-size: 13px;
}

.impact-value {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
}

/* Actions */
.hours-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.hours-actions button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-cancel {
  background: #444;
  color: #fff;
}

.btn-cancel:hover {
  background: #555;
}

.btn-confirm {
  background: #00ff41;
  color: #000;
}

.btn-confirm:hover {
  background: #00cc33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 65, 0.4);
}

/* Scrollbar styling for modal */
.hours-modal-content::-webkit-scrollbar {
  width: 8px;
}

.hours-modal-content::-webkit-scrollbar-track {
  background: #1a1a2e;
}

.hours-modal-content::-webkit-scrollbar-thumb {
  background: #00ff41;
  border-radius: 4px;
}

.hours-modal-content::-webkit-scrollbar-thumb:hover {
  background: #00cc33;
}
