/* Generic Modal Styles */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #181a1b;
  border: 1px solid #333;
  border-radius: 4px;
  width: 350px;
  max-width: 90%;
  max-height: 80%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #333;
  background: #232323;
}

.modal-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: #333;
  color: #fff;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.modal-section {
  margin-bottom: 16px;
}

.modal-section h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding-bottom: 1px;
  border-bottom: 1px solid #333;
}

.modal-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #bbb;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.15s ease;
}

.modal-checkbox:hover {
  color: #fff;
}

.modal-checkbox input[type='checkbox'] {
  width: 14px;
  height: 14px;
  accent-color: #1e90ff;
}

/* Column grouping styles */
.column-group {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 4px;
  background: #1a1a1a;
}

.column-header {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.column-header input[type='checkbox']:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subtext-options {
  margin-left: 16px;
  padding-top: 2px;
  border-top: 1px solid #333;
}

.subtext-option {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}

.subtext-option:hover {
  color: #ccc;
}

.modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-input-group label {
  font-size: 11px;
  font-weight: 500;
  color: #bbb;
  margin: 0;
}

.modal-input-group input {
  padding: 4px 6px;
  border: 1px solid #333;
  border-radius: 2px;
  background: #232323;
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

.modal-input-group input:focus {
  border-color: #1e90ff;
}

.modal-input-group input::placeholder {
  color: #666;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid #333;
  background: #232323;
}

.modal-button-group {
  display: flex;
  gap: 6px;
}

/* Button styles for modals */
.modal-button {
  padding: 4px 8px;
  border: 1px solid #333;
  border-radius: 2px;
  background: #232323;
  color: #bbb;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-button:hover {
  background: #333;
  color: #fff;
}

.modal-button--primary,
.modal-button--save {
  background: #1e90ff;
  color: #fff;
  border-color: #1e90ff;
}

.modal-button--primary:hover,
.modal-button--save:hover {
  background: #0070cc;
  border-color: #0070cc;
}

.modal-button--reset {
  background: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
}

.modal-button--reset:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}
