/* ========================================
   TOOL SPECIFIC STYLES
   ======================================== */

/* Character Counter */
.char-counter-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.char-counter-stat {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.char-counter-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.char-counter-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Password Generator */
.password-display {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-align: center;
  word-break: break-all;
  margin-bottom: 1.5rem;
  position: relative;
}

.password-strength {
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  margin-top: 1rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.password-strength-bar.weak { width: 33%; background: #EF4444; }
.password-strength-bar.medium { width: 66%; background: #F59E0B; }
.password-strength-bar.strong { width: 100%; background: #22C55E; }

.password-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.password-length {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.password-length input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
}

.password-length input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.password-length-value {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* Color Picker */
.color-picker-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.color-picker-preview {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.color-picker-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.1;
  z-index: 0;
}

.color-picker-saturation {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0)),
              linear-gradient(to top, #000, rgba(0,0,0,0));
  cursor: crosshair;
}

.color-picker-hue {
  height: 20px;
  background: linear-gradient(to right, 
    #f00 0%, #ff0 17%, #0f0 33%, 
    #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  border-radius: var(--radius-full);
  margin-top: 1rem;
  position: relative;
  cursor: pointer;
}

.color-picker-sliders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-input-group label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.color-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.color-input-wrapper input {
  flex: 1;
  font-family: var(--font-mono);
}

.color-input-wrapper button {
  padding: 0.5rem;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: var(--color-primary);
}

/* Code Editor */
.code-editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 600px;
}

.code-editor-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-editor-header {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.code-editor-header span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-editor-textarea {
  flex: 1;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.code-editor-preview {
  flex: 1;
  background: white;
  border: none;
  width: 100%;
}

/* Calculator */
.calculator-container {
  max-width: 400px;
  margin: 0 auto;
}

.calculator-display {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: right;
}

.calculator-history {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 20px;
  margin-bottom: 0.5rem;
}

.calculator-result {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  word-break: break-all;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.calc-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-btn:hover {
  background: var(--bg-hover);
}

.calc-btn.operator {
  background: var(--color-primary);
  color: white;
}

.calc-btn.operator:hover {
  background: var(--color-primary-light);
}

.calc-btn.function {
  background: var(--bg-hover);
  color: var(--color-primary);
  font-size: 1rem;
}

.calc-btn.zero {
  aspect-ratio: auto;
  grid-column: span 2;
}

/* QR Code Generator */
.qr-generator {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.qr-input-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qr-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.qr-preview-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-preview {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.qr-preview img {
  max-width: 100%;
}

/* JSON Formatter */
.json-formatter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 600px;
}

.json-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.json-panel-header {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.json-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.json-panel-actions {
  display: flex;
  gap: 0.5rem;
}

.json-textarea {
  flex: 1;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.json-output {
  flex: 1;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-key { color: #9CDCFE; }
.json-string { color: #CE9178; }
.json-number { color: #B5CEA8; }
.json-boolean { color: #569CD6; }
.json-null { color: #569CD6; }

/* Base64 Converter */
.base64-converter {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.base64-mode-switch {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.base64-mode-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.base64-mode-btn.active {
  background: var(--color-primary);
  color: white;
}

.base64-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.base64-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.base64-panel-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lorem Ipsum */
.lorem-generator {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lorem-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.lorem-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lorem-option label {
  font-weight: 500;
}

.lorem-option input[type="number"] {
  width: 80px;
  text-align: center;
}

.lorem-output {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 300px;
  line-height: 1.8;
}

/* Stopwatch */
.stopwatch-display {
  text-align: center;
  padding: 3rem 0;
}

.stopwatch-time {
  font-size: 5rem;
  font-weight: 200;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.stopwatch-time .milliseconds {
  font-size: 3rem;
  color: var(--text-muted);
}

.stopwatch-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stopwatch-laps {
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

.stopwatch-lap {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.stopwatch-lap:nth-child(odd) {
  background: var(--bg-tertiary);
}

/* Pomodoro */
.pomodoro-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.pomodoro-modes {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pomodoro-mode {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pomodoro-mode:hover,
.pomodoro-mode.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pomodoro-timer {
  font-size: 6rem;
  font-weight: 200;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.pomodoro-progress {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.pomodoro-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

.pomodoro-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Todo List */
.todo-container {
  max-width: 600px;
  margin: 0 auto;
}

.todo-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.todo-input-group input {
  flex: 1;
}

.todo-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.todo-item:hover {
  border-color: var(--border-light);
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.todo-text {
  flex: 1;
  color: var(--text-primary);
}

.todo-delete {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.todo-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.todo-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Currency Converter */
.currency-converter {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.currency-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
}

.currency-swap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.currency-swap:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(180deg);
}

.currency-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.currency-input-group label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.currency-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.currency-input-wrapper input {
  flex: 1;
}

.currency-select {
  width: 100px;
}

.currency-result {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.currency-result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.currency-result-rate {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Gold Prices */
.gold-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gold-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.gold-price-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.gold-price-card.gold {
  border-color: #FFD700;
}

.gold-price-card.gold:hover {
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.gold-price-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-price-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.gold-price-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gold-price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.gold-price-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.gold-price-change.up {
  color: #22C55E;
}

.gold-price-change.down {
  color: #EF4444;
}

/* Image Compressor */
.image-compressor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-dropzone {
  border: 3px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.image-dropzone:hover,
.image-dropzone.dragover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.image-dropzone-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-dropzone-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.image-dropzone-text {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.image-dropzone-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.image-preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.image-preview-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.image-preview-box h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.image-preview {
  aspect-ratio: 16/10;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-preview-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.image-compression-slider {
  margin: 1.5rem 0;
}

.image-compression-slider label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.image-compression-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
}

.image-compression-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Date Calculator */
.date-calculator {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.date-calculator-result {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.date-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.date-result-item {
  text-align: center;
}

.date-result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.date-result-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Health Calculator */
.health-calculator-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.health-calculator-tab {
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}

.health-calculator-tab:hover {
  color: var(--text-primary);
}

.health-calculator-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.bmi-result {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.bmi-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.bmi-category {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.bmi-scale {
  display: flex;
  margin-top: 1.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 20px;
}

.bmi-scale-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.bmi-scale-segment.underweight { background: #3B82F6; }
.bmi-scale-segment.normal { background: #22C55E; }
.bmi-scale-segment.overweight { background: #F59E0B; }
.bmi-scale-segment.obese { background: #EF4444; }

/* Encryption Tool */
.encryption-tool {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.encryption-mode-switch {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.encryption-mode-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.encryption-mode-btn.active {
  background: var(--color-primary);
  color: white;
}

.encryption-algorithm-select {
  margin-bottom: 1rem;
}

.encryption-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.encryption-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* YouTube Tools */
.youtube-tool-input {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.youtube-tool-input input {
  flex: 1;
}

.youtube-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.youtube-thumbnail-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.youtube-thumbnail-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.youtube-thumbnail-item-info {
  padding: 1rem;
}

.youtube-thumbnail-item-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.youtube-embed-preview {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1.5rem;
}

.youtube-embed-preview iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
}

.youtube-embed-code {
  margin-top: 1rem;
}

.youtube-embed-code textarea {
  width: 100%;
  min-height: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.youtube-tag-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.youtube-tag-category {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.youtube-tag-category:hover {
  border-color: var(--color-primary);
}

.youtube-tag-category.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.youtube-tag-category h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.youtube-tag-category span {
  font-size: 0.75rem;
  opacity: 0.7;
}

.youtube-tags-output {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 100px;
  margin-top: 1rem;
}

.youtube-optimizer-section {
  margin-bottom: 1.5rem;
}

.youtube-optimizer-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.youtube-optimizer-section .char-count {
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.youtube-optimizer-section .char-count.warning {
  color: #F59E0B;
}

.youtube-optimizer-section .char-count.error {
  color: #EF4444;
}

/* Responsive */
@media (max-width: 992px) {
  .color-picker-container,
  .qr-generator,
  .json-formatter,
  .base64-panels,
  .encryption-panels,
  .code-editor-container,
  .image-preview-container {
    grid-template-columns: 1fr;
  }
  
  .code-editor-container {
    height: auto;
  }
  
  .code-editor-panel {
    height: 400px;
  }
  
  .currency-row {
    grid-template-columns: 1fr;
  }
  
  .currency-swap {
    transform: rotate(90deg);
    margin: 0 auto;
  }
  
  .date-result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stopwatch-time {
    font-size: 3rem;
  }
  
  .pomodoro-timer {
    font-size: 4rem;
  }
}

@media (max-width: 576px) {
  .password-options {
    grid-template-columns: 1fr;
  }
  
  .date-result-grid {
    grid-template-columns: 1fr;
  }
  
  .bmi-value {
    font-size: 2.5rem;
  }
  
  .calculator-result {
    font-size: 1.75rem;
  }
}
