/* ==========================================================================
   LUCIMAR.SPACE - Utilities Styling (Tools, Forms, Color Studio, Timer)
   ========================================================================== */

.utility-stage-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tool Panel Cards */
.tool-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.tool-header-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Inputs & Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.form-control-input,
.form-control-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-control-input:focus,
.form-control-textarea:focus {
  border-color: var(--neon-violet);
  box-shadow: 0 0 15px var(--neon-violet-glow);
}

/* Output Display Box */
.output-box {
  position: relative;
  background: #060914;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-all;
}

.output-box .btn-copy-inline {
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Password Generator Specifics */
.strength-meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: var(--radius-full);
}

.strength-weak { width: 25%; background: #ef4444; }
.strength-fair { width: 50%; background: #f59e0b; }
.strength-good { width: 75%; background: #3b82f6; }
.strength-strong { width: 100%; background: #10b981; box-shadow: 0 0 10px #10b981; }

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.checkbox-chip:hover {
  background: rgba(255, 255, 255, 0.07);
}

.checkbox-chip input[type="checkbox"] {
  accent-color: var(--neon-violet);
}

.checkbox-chip.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--neon-violet);
  color: #fff;
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-violet);
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-violet);
  transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Button groups */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-secondary {
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-tool {
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--neon-violet), #c084fc);
  border: none;
  border-radius: var(--radius-md);
  color: #070913;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px var(--neon-violet-glow);
  transition: var(--transition-smooth);
}

.btn-primary-tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--neon-violet);
}

/* Color Studio */
.palette-preview-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.palette-swatch {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.palette-swatch:hover {
  flex-grow: 1.3;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  color: #fff;
}

.gradient-preview-box {
  height: 140px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.grad-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 600px) {
  .grad-controls-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Focus Timer */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.timer-circle-wrap {
  position: relative;
  width: 260px;
  height: 260px;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.timer-progress-circle {
  fill: none;
  stroke: var(--neon-violet);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
  filter: drop-shadow(0 0 8px var(--neon-violet-glow));
}

.timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-time {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.timer-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timer-presets {
  display: flex;
  gap: 0.6rem;
}

.timer-preset-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timer-preset-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-violet);
  color: #fff;
}

/* Text Tools Stats Bar */
.text-stats-bar {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

.text-stats-bar span b {
  color: var(--neon-cyan);
}
