/* ===== RESET & BASE ===== */
.tcc-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  min-height: 50vh;
}

.tcc-container {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border: 1px solid #e0e5f0;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(100, 110, 140, 0.12);
  position: relative;
}

/* ===== TITLE ===== */
.tcc-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.tcc-subtitle {
  text-align: center;
  font-size: 14px;
  color: #6b7c93;
  margin: 0 0 28px 0;
}

/* ===== TEXTAREA ===== */
.tcc-textarea-wrap {
  position: relative;
}

.tcc-textbox {
  width: 100%;
  height: 220px;
  padding: 16px 40px 16px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
  background: #f8fafc;
  border: 2px solid #dde3ee;
  border-radius: 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.tcc-textbox::placeholder {
  color: #a0aec0;
}

.tcc-textbox:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: #ffffff;
}

.tcc-clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e8ecf4;
  color: #6b7c93;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.tcc-clear-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* ===== STATS BAR ===== */
.tcc-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  padding: 12px 0 20px 0;
  font-size: 13px;
  color: #7a8aa2;
}

.tcc-stats span {
  padding: 0 10px;
}

.tcc-stats-divider {
  color: #d4dae6 !important;
  padding: 0 2px !important;
}

/* ===== BUTTONS ===== */
.tcc-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tcc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #d4dae6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.tcc-btn:hover {
  background: #e2e8f0;
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
  color: #1e293b;
}

.tcc-btn:active {
  transform: translateY(0);
}

.tcc-btn-icon {
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  color: #6366f1;
  line-height: 1;
  letter-spacing: 0.5px;
  border: 1px solid #e0e5f0;
}

.tcc-btn-accent {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.tcc-btn-accent:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.tcc-btn-accent .tcc-btn-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tcc-btn-secondary {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.tcc-btn-secondary:hover {
  background: #d1fae5;
  border-color: #059669;
  color: #065f46;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
}

.tcc-btn-secondary .tcc-btn-icon {
  background: #ffffff;
  color: #059669;
  border-color: #a7f3d0;
}

/* ===== TOAST ===== */
.tcc-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #6366f1;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.tcc-toast.tcc-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .tcc-container {
    padding: 24px 16px;
  }

  .tcc-title {
    font-size: 22px;
  }

  .tcc-textbox {
    height: 170px;
    font-size: 14px;
  }

  .tcc-btn {
    padding: 9px 13px;
    font-size: 12.5px;
  }

  .tcc-stats span {
    padding: 0 6px;
  }
}
