/* Email Signature Generator Styles */

.sig-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.sig-intro {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #2563eb;
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
}

.sig-intro p {
  margin: 0;
  color: #1e40af;
  line-height: 1.6;
}

.sig-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .sig-layout {
    grid-template-columns: 1fr;
  }
}

.sig-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sig-sticky {
  position: sticky;
  top: 20px;
}

.sig-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

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

@media (max-width: 600px) {
  .sig-form-grid {
    grid-template-columns: 1fr;
  }
}

.sig-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sig-field-full {
  grid-column: 1 / -1;
}

.sig-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.sig-field input,
.sig-field select {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sig-field input:focus,
.sig-field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sig-field input[type="color"] {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}

.sig-field small {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Preview */
.sig-preview-box {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 200px;
  overflow: auto;
}

.sig-preview-placeholder {
  color: #9ca3af;
  text-align: center;
  margin: 0;
  padding: 3rem 1rem;
}

/* Buttons */
.sig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sig-btn {
  padding: 0.75rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #374151;
}

.sig-btn:hover {
  background: #f3f4f6;
}

.sig-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.sig-btn-primary:hover {
  background: #1d4ed8;
}

.sig-btn-light {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

/* Toast */
.sig-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 9999;
}

.sig-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sig-toast.error {
  background: #ef4444;
}

/* How To Grid */
.sig-howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sig-howto-item h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
  color: #111827;
}

.sig-howto-item ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* FAQ */
.sig-faq details {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.sig-faq details:last-child {
  border-bottom: none;
}

.sig-faq summary {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sig-faq summary::-webkit-details-marker {
  display: none;
}

.sig-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #6b7280;
}

.sig-faq details[open] summary::after {
  content: '−';
}

.sig-faq details p {
  margin: 0.75rem 0 0 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Signature Templates Styling */
.sig-generated {
  font-family: Arial, sans-serif;
}

.sig-generated table {
  border-collapse: collapse;
}

.sig-generated td {
  vertical-align: top;
}

.sig-generated a {
  text-decoration: none;
}

.sig-generated img {
  display: block;
}
