* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

        .container {
  max-width: 800px;
  margin: 0 auto;
/*   padding: 2rem; */
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
   background:linear-gradient(135deg, #87CEEB, #4682B4);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

.preview-section {
  text-align: center;
  margin-bottom: 2rem;
}

.preview-section h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.download-btn {
  background: linear-gradient(135deg, #87CEEB 0%, #4A90E2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

.invoice-preview {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.invoice-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid #8B0000;
}

.logo-section {
  flex: 1;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  background-color: #696969;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.invoice-title-section {
  flex: 1;
  text-align: right;
}

.invoice-title-section h2 {
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.top-info-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.company-info-left {
  flex: 1;
}

.company-info-left p {
  margin-bottom: 0.3rem;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

.invoice-details-right {
  text-align: right;
  min-width: 200px;
}

.invoice-details-right .detail-row {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #333;
}

.invoice-details-right .detail-row.invoice-number {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: bold;
  padding-top: 0.5rem;
  border-top: 2px solid #333;
}

.payment-terms {
  margin-bottom: 1.5rem;
  text-align: center;
}

.payment-terms p {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
}

.bill-ship-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
  padding-top: 1rem;
}

.bill-to,
.ship-to {
  flex: 1;
}

.bill-to p,
.ship-to p {
  margin-bottom: 0.3rem;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bill-to p:first-child,
.ship-to p:first-child {
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.items-table {
  margin-bottom: 2rem;
}

.items-table table {
  width: 100%;
  border-collapse: collapse;
}

.items-table thead {
  background-color: #8B0000;
  color: white;
}

.items-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.items-table th:last-child,
.items-table td:last-child {
  text-align: right;
}

.items-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.items-table tbody tr:last-child {
  border-bottom: 2px solid #8B0000;
}

.items-table td {
  padding: 0.75rem;
  color: #333;
  font-size: 0.9rem;
}

.totals-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  width: 300px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.totals-row.total {
  border-top: 2px solid #8B0000;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.notes-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #e0e0e0;
}

.notes-section p {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
   h1 {
    font-size: 35px ;
  }

  .container {
    padding: 0px;
  }
	.e-con{
		padding:6px
	}

  .invoice-preview {
    padding: 1rem;
  }

  .invoice-container {
    padding: 1rem;
  }

  .invoice-header {
    flex-direction: column;
    gap: 1rem;
  }

  .invoice-title-section {
    text-align: left;
  }

  .top-info-section {
    flex-direction: column;
    gap: 1rem;
  }

  .invoice-details-right {
    text-align: left;
  }

  .bill-ship-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .totals-row {
    width: 100%;
  }

  .items-table {
    overflow-x: auto;
  }

  .items-table table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .app-header h1 {
    font-size: 1.5rem;
  }

  .download-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .invoice-title-section h2 {
    font-size: 1.5rem;
  }
}
