/* Text Encryption & Decryption Tool Styles */
.tedt-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.tedt-card {
  background: var(--tf-surface, #ffffff);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tedt-header-area {
  margin-bottom: 1.25rem;
}

.tedt-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--tf-text, #0f172a);
}

.tedt-subtitle {
  font-size: 0.95rem;
  color: var(--tf-muted, #64748b);
  margin: 0;
}

.tedt-security-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.tedt-security-icon {
  font-size: 1.25rem;
}

.tedt-security-text {
  line-height: 1.4;
}

.tedt-security-text code {
  background: #dcfce7;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

.tedt-mode-bar {
  margin-bottom: 1.25rem;
}

.tedt-toggle-group {
  display: flex;
  background: var(--tf-bg-alt, #f1f5f9);
  padding: 0.25rem;
  border-radius: 6px;
  gap: 0.25rem;
}

@media (max-width: 640px) {
  .tedt-toggle-group {
    flex-direction: column;
  }
}

.tedt-mode-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--tf-muted, #64748b);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tedt-mode-btn:hover {
  color: var(--tf-text, #0f172a);
}

.tedt-mode-active {
  background: var(--tf-surface, #ffffff);
  color: var(--tf-accent, #2563eb);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.tedt-config-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 700px) {
  .tedt-config-grid {
    grid-template-columns: 1fr;
  }
}

.tedt-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.tedt-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tedt-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tf-text, #1e293b);
}

.tedt-req {
  color: #dc2626;
}

.tedt-btn-link {
  background: transparent;
  border: none;
  color: var(--tf-accent, #2563eb);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.tedt-btn-link:hover {
  text-decoration: underline;
}

.tedt-pw-wrap {
  display: flex;
  gap: 0.5rem;
}

.tedt-input,
.tedt-select,
.tedt-textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #0f172a);
  box-sizing: border-box;
  width: 100%;
}

.tedt-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  resize: vertical;
}

.tedt-output-box {
  background: var(--tf-bg-alt, #f8fafc);
  color: var(--tf-text, #0f172a);
}

.tedt-actions-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tedt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.tedt-btn-primary {
  background: var(--tf-accent, #2563eb);
  color: #ffffff;
}

.tedt-btn-primary:hover {
  opacity: 0.9;
}

.tedt-btn-outline {
  background: transparent;
  border-color: var(--tf-border, #cbd5e1);
  color: var(--tf-text, #334155);
}

.tedt-btn-outline:hover {
  background: var(--tf-bg-alt, #f8fafc);
}

.tedt-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--tf-border, #cbd5e1);
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #334155);
  cursor: pointer;
}

.tedt-btn-sm:hover {
  background: var(--tf-bg-alt, #f1f5f9);
}

.tedt-output-panel {
  background: var(--tf-surface, #ffffff);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tedt-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--tf-bg-alt, #f8fafc);
  border-bottom: 1px solid var(--tf-border, #e2e8f0);
}

.tedt-panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
  color: var(--tf-text, #1e293b);
}

.tedt-head-actions {
  display: flex;
  gap: 0.4rem;
}

.tedt-output-wrap {
  padding: 0.75rem;
}

.tedt-meta-bar {
  padding: 0.45rem 0.85rem;
  background: var(--tf-bg-alt, #f1f5f9);
  border-top: 1px solid var(--tf-border, #e2e8f0);
}

.tedt-meta-info {
  font-size: 0.75rem;
  color: var(--tf-muted, #64748b);
}

.tedt-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.25rem;
}

.tedt-feedback-error {
  color: #dc2626;
}

.tedt-feedback-success {
  color: #16a34a;
}
