/* ToolHub WordPress Plugin Styles */
.toolhub-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 680px;
  margin: 0 auto 40px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.toolhub-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.toolhub-desc {
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.toolhub-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolhub-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}

.toolhub-form input[type="number"],
.toolhub-form input[type="date"],
.toolhub-form input[type="text"],
.toolhub-form select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  color: #111827;
  background: #f9fafb;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.toolhub-form input:focus,
.toolhub-form select:focus,
textarea:focus {
  outline: none;
  border-color: #0e7490;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,116,144,0.12);
}

textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
}

.toolhub-form button,
button.toolhub-btn {
  padding: 11px 24px;
  background: #0e7490;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.toolhub-form button:hover {
  background: #0c6578;
}

.th-secondary {
  background: #f1f5f9 !important;
  color: #0e7490 !important;
  border: 1px solid #e2e8f0 !important;
}

.th-secondary:hover {
  background: #e2e8f0 !important;
}

.toolhub-result {
  margin-top: 20px;
  padding: 20px;
  background: #f0fdff;
  border: 1px solid #a5f3fc;
  border-radius: 10px;
  font-size: 1.05rem;
  color: #0c4a6e;
  font-weight: 500;
}

.toolhub-result .th-big {
  font-size: 2rem;
  font-weight: 800;
  color: #0e7490;
  display: block;
  margin-bottom: 4px;
}

.toolhub-result .th-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
}

/* Word Counter Stats */
.th-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.th-stat {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}

.th-stat span {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0e7490;
}

.th-stat label {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* GPA rows */
.th-gpa-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.th-gpa-row input,
.th-gpa-row select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f9fafb;
}

.th-remove {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  width: auto !important;
}

/* Password */
.th-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.th-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  color: #374151;
  cursor: pointer;
}

.th-pass-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

#th-pass-text {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-all;
  flex: 1;
}

.th-copy-btn {
  padding: 6px 16px !important;
  width: auto !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  flex-shrink: 0;
}

.th-strength {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-block;
}

.th-strength.weak   { background: #fee2e2; color: #dc2626; }
.th-strength.medium { background: #fef9c3; color: #b45309; }
.th-strength.strong { background: #dcfce7; color: #16a34a; }

/* Tabs */
.th-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}

.th-tab {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  width: auto !important;
}

.th-tab.active,
.th-tab:hover {
  color: #0e7490;
  border-bottom-color: #0e7490;
  background: transparent !important;
}

/* All Tools Grid */
.toolhub-all-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.toolhub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.toolhub-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.toolhub-card:hover {
  border-color: #a5f3fc;
  box-shadow: 0 4px 16px rgba(14,116,144,0.08);
}

.toolhub-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0e7490;
  background: #f0fdff;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 10px;
}

.toolhub-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.toolhub-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .toolhub-wrap { padding: 20px 16px; }
  .th-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .th-gpa-row { grid-template-columns: 1fr 1fr; }
  .th-tabs { flex-wrap: wrap; }
}
