/* ===================================
   SIMULATION ARGENTIQUE N&B - STYLE.CSS
   Bootstrap 5 + Custom Styling
   =================================== */

/* Global Styles */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0d0d0d;
  color: #eee;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 10px 0 20px;
  font-size: 1.8em;
  font-weight: bold;
}

/* Drop Zone */

.drop-zone {
  border: 3px dashed #555;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: #1a1a1a;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: #f1c40f;
  background: #252525;
  transform: scale(1.02);
}

.drop-zone.has-image {
  padding: 10px;
  border-style: solid;
  border-color: #27ae60;
}

/* Section Title */

.section-title {
  margin: 20px 0 10px;
  font-size: 1.1em;
  font-weight: bold;
  color: #f39c12;
}

/* Filter Buttons */

.btn-group-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-filter {
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  min-width: 120px;
  font-size: 14px;
}

.btn-yellow {
  background: #f1c40f;
  color: #000;
}

.btn-orange {
  background: #e67e22;
  color: #fff;
}

.btn-red {
  background: #c0392b;
  color: #fff;
}

.btn-green {
  background: #27ae60;
  color: #fff;
}

.btn-blue {
  background: #2980b9;
  color: #fff;
}

.btn-reset {
  background: #95a5a6;
  color: #000;
}

.btn-filter:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-filter.active {
  box-shadow: 0 0 15px 3px #fff, inset 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(1.07);
}

/* Controls Container */

.controls-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #1a1a1a;
  border-radius: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e1e1e;
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 200px;
}

.control-group.checkbox-group {
  min-width: auto;
  padding: 8px 16px;
}

.control-group label {
  font-weight: 600;
  min-width: 80px;
  margin-bottom: 0;
  font-size: 14px;
}

.control-group .form-range {
  width: 150px;
  cursor: pointer;
}

.control-group .form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  background-color: #333;
  border-color: #555;
}

.control-group .form-check-input:checked {
  background-color: #f1c40f;
  border-color: #f1c40f;
}

.value-display {
  min-width: 45px;
  text-align: center;
  font-weight: bold;
  color: #f1c40f;
  font-size: 14px;
}

/* Action Buttons */

.btn-action {
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  min-width: 140px;
  font-size: 14px;
}

.btn-reset-all, .btn-before-after, .btn-split {
  background: #95a5a6;
  color: #000;
}

.btn-download {
  background: #9b59b6;
  color: #fff;
}

.btn-action:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Canvas Container */

.canvas-container {
  position: relative;
  display: inline-block;
  /*margin: -20px 0;*/
}

canvas {
  max-width: 90vw;
  max-height: 70vh;
  border: 3px solid #333;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: block;
}

/* Split Slider */

.split-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #f1c40f;
  cursor: ew-resize;
  display: none;
  z-index: 10;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.8);
}

.split-slider::before {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f1c40f;
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Current Filter Display */

.current-filter {
  margin: 10px 0;
  font-size: 1.15em;
  font-weight: bold;
  color: #f1c40f;
  text-align: center;
  padding: 12px 24px;
  background: #1a1a1a;
  border-radius: 8px;
  display: inline-block;
}

/* Legend */

.legend-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
  font-size: 0.95em;
}

.filter-name {
  font-weight: bold;
}

.yellow-text {
  color: #f1c40f;
}

.orange-text {
  color: #e67e22;
}

.red-text {
  color: #c0392b;
}

.green-text {
  color: #27ae60;
}

.blue-text {
  color: #2980b9;
}

/* Responsive Design */

@media (max-width: 768px) {
  h1 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .btn-filter, .btn-action {
    min-width: 100px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .control-group {
    flex-direction: column;
    text-align: center;
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .control-group label {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .control-group .form-range {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .controls-container {
    padding: 10px;
  }
}

/* Range Input Styling */

.form-range {
  height: 6px;
  background: #333;
  border-radius: 3px;
  outline: none;
}

.form-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  background: #f1c40f;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #000;
}

.form-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #f1c40f;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #000;
}

.form-range::-webkit-slider-thumb:hover {
  background: #f39c12;
}

.form-range::-moz-range-thumb:hover {
  background: #f39c12;
}

.download-note {
  font-size: 0.85rem;
  color: #6c757d;
  padding: 4px 0;
  line-height: 1.4;
}

.download-note .lock-icon {
  margin-right: 6px;
}

