/* components.css - 범용 UI 컴포넌트 */

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 20px; margin-left: 10px; vertical-align: middle; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 20px; }
.toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
.toggle-switch input:checked + .toggle-slider { background-color: var(--primary-color); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Buttons */
.btn-circle-small {
  width: 26px; height: 26px; min-width: 26px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid #007bff; background: #fff; color: #007bff; font-weight: bold;
  cursor: pointer; margin-left: auto; font-size: 0.85em; display: flex; align-items: center; justify-content: center; padding: 0;
}
.btn-circle-small:disabled { cursor: not-allowed; opacity: 0.4; }

.btn-remove-small {
  margin-left: 10px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #dc3545; background: #fff; color: #dc3545; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; padding: 0;
}

.btn-close-x {
    padding: 2px 6px; font-size: 0.8em; cursor: pointer; border: 1px solid #ccc; background: #fff; border-radius: 4px; line-height: 1;
}

/* Tooltip */
.buff-tooltip {
  position: absolute; z-index: 10000; background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 10px 15px;
  border-radius: 8px; font-size: 0.88em; line-height: 1.5; max-width: 280px; pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s;
  transform: translateY(5px); text-align: left; border: 1px solid #444;
}
.buff-tooltip.show { opacity: 1; visibility: visible; transform: translateY(0); }
.tooltip-title { font-weight:bold; color:#ffcb05; text-align:center; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 5px; padding-bottom: 3px; }
.tooltip-content { font-size: 0.85em; color: #eee; text-align: center; line-height: 1.4; }

/* Toast */
.toast-message {
  visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 4px; padding: 10px 15px;
  position: fixed; z-index: 9999; left: 50%; bottom: 30px; transform: translateX(-50%); font-size: 0.9em; opacity: 0;
  transition: opacity 0.3s, bottom 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.3); pointer-events: none;
}
.toast-message.show { visibility: visible; opacity: 1; bottom: 50px; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7);
  display: flex; justify-content: center; align-items: center; z-index: 1500;
}
.modal-content {
  background: white; padding: 20px; border-radius: 12px; width: 90%; max-width: 400px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Turn Separator */
.turn-separator {
  margin: 15px 0 8px; display: flex; align-items: center; gap: 8px; color: #888; font-size: 0.75em; font-weight: bold; cursor: pointer;
}
.turn-line { flex-grow: 1; border-top: 1px dashed #ccc; }
.turn-label { white-space: nowrap; color: #ccc; }