/* PDF Styles for Business Quote Generator */

/* Base styles for PDF output */
.pdf-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* PDF Header */
.pdf-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #2c3e50;
}

.pdf-logo h1 {
  color: #2c3e50;
  font-size: 24px;
  margin: 0;
}

.pdf-quote-info {
  text-align: right;
}

.pdf-quote-info h2 {
  color: #3498db;
  font-size: 28px;
  margin: 0 0 10px 0;
}

.pdf-quote-details {
  font-size: 14px;
}

.pdf-quote-details .label {
  font-weight: bold;
  margin-right: 5px;
}

/* Addresses section */
.pdf-addresses {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.pdf-from, .pdf-to {
  width: 48%;
}

.pdf-from h3, .pdf-to h3 {
  color: #2c3e50;
  font-size: 16px;
  margin: 0 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

.pdf-from p, .pdf-to p {
  margin: 5px 0;
  font-size: 14px;
}

/* Items table */
.pdf-items {
  margin-bottom: 30px;
}

.pdf-items-table {
  width: 100%;
  border-collapse: collapse;
}

.pdf-items-table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.pdf-items-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.pdf-items-table tr:last-child td {
  border-bottom: 2px solid #ddd;
}

/* Summary section */
.pdf-summary {
  width: 40%;
  margin-left: auto;
  margin-bottom: 30px;
}

.pdf-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.pdf-summary-row.pdf-total {
  font-weight: bold;
  font-size: 16px;
  border-top: 2px solid #2c3e50;
  padding-top: 10px;
  margin-top: 5px;
}

/* Notes section */
.pdf-notes {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.pdf-notes h3 {
  color: #2c3e50;
  font-size: 16px;
  margin: 0 0 10px 0;
}

.pdf-notes p {
  font-size: 14px;
  margin: 0;
}

/* Footer */
.pdf-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #7f8c8d;
}

/* Print-specific styles */
@media print {
  .pdf-container {
    padding: 0;
  }
  
  .pdf-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  
  .pdf-addresses {
    margin-bottom: 20px;
  }
  
  .pdf-items {
    margin-bottom: 20px;
  }
  
  .pdf-summary {
    margin-bottom: 20px;
  }
  
  .pdf-notes {
    margin-bottom: 20px;
  }
  
  .pdf-footer {
    margin-top: 20px;
  }
}

/* Modal styles for email functionality */
.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.modal-header h3 {
  margin: 0;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Status message styles */
.status-message {
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 4px;
  font-size: 14px;
}

.status-message.hidden {
  display: none;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Output section styles */
.output-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.section-content {
  padding: 15px;
}