/* Common styles for all tool pages */

.tool-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(37, 99, 210, 0.09);
    padding: 10px 15px;
    margin-bottom: 10px;
}

.tool-card h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1e40af;
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
}

.subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.tool-form-group {
  margin-bottom: 1.2rem;
}

.tool-form-group label {
  display: block;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.tool-input, .tool-select, .tool-textarea {
  font-size: 1rem;
  padding: 10px 12px;
  width: 100%;
  border-radius: 10px;
  border: 1.8px solid #bcd3f7;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
  color: #1e293b;
  background: #f8fbff;
}

.tool-textarea {
  min-height: 30px;
  resize: vertical;
  font-family: 'Courier New', monospace;
}

.tool-input:focus, .tool-select:focus, .tool-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 210, 0.15);
}

.tool-btn {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: white;
  cursor: pointer;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 210, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 210, 0.45);
}

.tool-btn:disabled {
  background: #93c5fd;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.output-wrapper {
  position: relative;
  margin-top: 1.5rem;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.output-header label {
  margin-bottom: 0;
}

.copy-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.tool-output {
    white-space: pre-wrap;
    background: #f8fbff;
    padding: 12px;
    border-radius: 12px;
    min-height: 16px;
    font-family: 'Courier New', monospace;
    color: #1e293b;
    border: 1.5px solid #bcd3f7;
    line-height: 1.5;
    overflow: auto;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.info-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid #e2e8f0;
}

.info-card h4 {
  color: #1e40af;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Dark Mode Overrides */
body.dark-mode .tool-card { background: #1e2a45; }
body.dark-mode .tool-input, body.dark-mode .tool-select, body.dark-mode .tool-textarea, body.dark-mode .tool-output {
  background: #141d2e; color: #e2e8f0; border-color: #2e3f6e;
}
body.dark-mode .info-card { background: #162038; border-color: #1e3a5c; }
body.dark-mode .info-card h4 { color: #93c5fd; }
body.dark-mode .copy-btn { background: #1e2a45; border-color: #2e3f6e; color: #94a3b8; }
body.dark-mode .copy-btn:hover { background: #2e3f6e; color: #fff; }
