* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #000;
  line-height: 1.6;
}

.invoice-container {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
}

h1 {
  font-size: 24px;
  color: #000;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

h2 {
  font-size: 18px;
 
  margin-bottom: 15px;
  font-weight: 500;
}

h3 {
  font-size: 16px;
 
  margin: 15px 0 10px;
  font-weight: 500;
}

.section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.section:last-child {
  border-bottom: none;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

.form-group.half {
  flex-basis: calc(50% - 10px);
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
 
 
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  
  
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.help-text {
  font-size: 12px;
  color: #444;
  margin-top: 5px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Logo upload section */
.logo-upload {
  border: 2px dashed #ddd;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  background-color: #f9f9f9;
  cursor: pointer;
  margin-bottom: 15px;
}

.logo-upload .icon {
  font-size: 32px;
  color: #bbb;
  margin-bottom: 10px;
}

.logo-upload p {
  margin: 5px 0;
  font-size: 13px;
  color: #777;
}

.upload-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.upload-btn:hover {
  background-color: #e0e0e0;
}

/* Items table */
.table-header {
  display: grid;
  grid-template-columns: 3fr 0.7fr 1fr 1.3fr 1fr 0.3fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid #eee;
  font-weight: 500;
  font-size: 14px;
  color: #555;
}

.th {
  padding: 0 5px;
}

.item-row {
  margin-bottom: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.item-row .form-row {
  display: grid;
  grid-template-columns: 3fr 0.7fr 1fr 1fr 0.3fr 1fr 0.3fr;
  gap: 10px;
  margin-bottom: 0;
}

.item-row input,
.item-row select {
  height: 40px;
  padding: 5px 10px;
}

.amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  font-weight: 500;
}

.remove-item {
  background: transparent;
  color: #ff4d4f;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.remove-item:hover {
  background: #ededed;
}

/* Add Item Button */
.btn-secondary {
  background-color: #fff;
  color: #7552cc;
  border: 1px solid #7552cc;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.2s;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #e3dcf4;
}

/* Totals section */
.totals {
  margin-top: 30px;
  width: 350px;
  margin-left: auto;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.total-row:last-child {
  border-bottom: none;
}

.total-label {
  color: #555;
}

.total-label input {
  width: 70px;
  display: inline-block;
  margin: 0 5px;
}

.total-label select {
  width: 70px;
  display: inline-block;
  margin-left: 5px;
}

.total-amount {
  font-weight: 500;
  min-width: 100px;
  text-align: right;
}

.grand-total {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  padding-top: 15px;
  border-top: 2px solid #eee;
  margin-top: 10px;
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  flex-direction: column;
}

.payment-method, .payment-method label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.payment-method svg{
    width:16px;
    height:16px;
}
.payment-details h3 {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  margin-bottom: 8px;
}
.payment-method input[type="radio"] {
  margin: 0;
}

.payment-method label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Payment details sections */
.payment-details {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  display: none;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.btn-cancel {
  background-color: #fff;
  color: #666;
  border: 1px solid #ddd;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cancel:hover {
  background-color: #f5f5f5;
}

.btn-primary {
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 150px;
}

.btn-primary:hover {
  background-color: #272727;
}

.btn-primary:disabled {
  background-color: #6a737b;
  cursor: not-allowed;
}

/* Result area */
#result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
}

#result.success {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

#result.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.top_box,
.payment_box {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  flex-wrap: wrap;
}

.image_upload {
  flex: 1;
  max-width: 300px;
  border: 1px dashed #ddd;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
}

.image_upload img {
  max-width: 100px;
  height: 100px;
  object-fit: contain;
  margin: auto;
  display: block;
}

.inv-inputs,
.payments {
  flex: 2;
}

.paymet_select_box {
  flex: 1;
  max-width: 300px;
}

#logo {
  display: none;
}

.custom-file-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffd500;
  color: #000000;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.custom-file-button:hover {
  background-color: #ffde4c;
}

/* Payment method specific sections */
#bankDetailsSection,
#paypalDetailsSection,
#upiDetailsSection,
#paymentLinkDetailsSection,
#cashDetailsSection {
  display: none;
  background-color: #f9f9f9;
  border-radius: 5px;
  padding: 5px 15px 15px 15px;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Stack elements on mobile */
}

main {
  width: 100%;
  background-color: #f9f9f9;
  margin-bottom: 20px; /* Add space between main and aside on mobile */
}

aside {
  width: 100%;
}

/* Media query for desktop screens */
@media screen and (min-width: 768px) {
  .container {
    flex-direction: row; /* Side by side on desktop */
    flex-wrap: wrap;
    justify-content: space-between;
  }

  main {
    width: calc(100% - 360px);
    margin-bottom: 0;
  }

  aside {
    width: 340px;
  }
}

.margin-top {
  margin-top: 20px;
}

.footer_container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

footer {
  background-color: #f9f8f6;
  padding: 20px;
  font-size: 14px;
  color: #444;
  margin-top: 2em;
  border-top: 2px solid #e6e7e8;
}

.footer_box {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2em;
  flex-wrap: wrap;
}

.footer_one {
  flex: 1;
  max-width: 800px;
}

.footer_two {
  flex: 1;
}

.footer_social {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.footer_social a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f0f0;
  text-align: center;
  border: 1px solid #bebebe;
  font-size: 16px;
}
.footer_social a:hover {
  color: #000;
}

.footer_links {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer_links div ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer_links div ul li {
  margin-bottom: 5px;
}
.footer_links div ul li a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.2s;
}

.footer_links div ul li a:hover {
  color: #000;
}

.footer_copyright {
  text-align: center;
  margin-top: 20px;
  color: #444;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.footer_logo {
  max-width: 90px;
  margin-bottom: 5px;
}

.one_line {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is_small {
  font-size: 12px;
  color: #444444;
}

.recent_invoices_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent_invoices_list li {
  padding: 10px 0px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  margin-inline: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent_invoices_list li:last-child {
  border-bottom: none;
}
.recent_invoices_list a {
  text-decoration: none;
  color: #444;
  background-color: #fff;
  border: 1px solid #9c9c9c;
  transition: color 0.2s;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  gap:5px;

    font-size: .75rem;
    line-height: 1rem;
  align-items: center;
  justify-content: center;
}
.recent_invoices_list a:hover {
  background-color: #f3f4f7;
 
}

.widget {
  display: block;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px 0px;
  margin-bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.widget_heading {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-inline: 10px;
  padding-bottom: 10px;
}

.widget_content {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flex_center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 1em;
}

.flex_center h3 {
  font-size: 19px;
  color: #000000;
  margin: 0px;
  padding: 0px;
}

.youtube {
  display: block;
  text-decoration: none;
  color: #fff;
  background-color: #d90f00;
  border: 1px solid #d90f00;
  transition: all 0.2s;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  padding: 10px 0px;
}

.youtube:hover {
  background-color: #e60000;
  border: 1px solid #e60000;
}

.creator {
  max-width: 100px;
  height: auto;
  border-radius: 50%;
}

.empty_invoices {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: #444;
}
.empty_invoices img {
  max-width: 100px;
}

.page_container ul,
.page_container ol {
  list-style-position: inside;
}

.page_container {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

header {
  background-color: #f9f8f6;
  padding: 5px 20px;
  border-bottom: 2px solid #e6e7e8;
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.header_logo img {
  max-width: 90px;
  height: auto;
}

.header_nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header_nav a {
  text-decoration: none;
  color: #666;
  transition: color 0.2s;
  font-weight: 600;
}
.header_nav a:hover {
  color: #000;
}

.sidebar {
  position: sticky;
  top: 5px;
  height: 100vh;
}

@media (max-width: 768px) {
    
    .header_nav {
 
  gap: 12px;
   
}
header {
  
  padding: 5px 15px;
  
}

  .image_upload,
  .paymet_select_box {
    max-width: 100%;
    width: 100%;
  }
  .payment_box {
    flex-direction: column;
    display: block;
  }
  .payments {
    margin-top: 20px;
  }
  .invoice-container,
  .page_container {
    padding: 15px;
    margin: 8px;
  }

  .form-group.half {
    flex-basis: 100%;
  }

  .item-row .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .table-header {
    display: none;
  }

  .totals {
    width: 100%;
  }

  .widget {
    margin-bottom: 20px;
    margin-inline: 8px;
  }

  .footer_box {
    flex-direction: column;
  }
  .footer_two,
  .footer_one {
    width: 100%;
  }
}

.generator_container {
  max-width: 1400px;
  margin: 2em auto;
  padding: 20px;
  background-color: #f9f9f9;
  color: #333;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.invoice-generator h2 {
  font-size: 1.5rem;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #333;
}

.invoice-generator h3 {
  font-size: 1.2rem;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #000;
}

.invoice-generator p {
  margin-bottom: 15px;
}

.invoice-generator .content {
  display: flex;
  gap: 40px;

  flex-wrap: wrap;
}

.invoice-generator .left,
.invoice-generator .right {
  flex: 1 1 45%;
  min-width: 300px;
}

.invoice-generator ul {
  padding-left: 20px;
}

.invoice-generator ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.invoice-generator .bottom {
  margin-top: 40px;
}



.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


.pagecontainer {
  max-width: 1400px;
  margin: auto;
}




.page_title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page_subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.page_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  gap: 20px;
}

.page_card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page_card p{
margin-block:1em;
color:#444;
}


.page_step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #4f46e5;
}

.page_list {
  list-style: disc;
  padding-left: 20px;
}

.page_list li {
  margin-bottom: 8px;
}

.page_best-practices {
  background: #eef2ff;
  margin-top: 40px;
  padding: 20px;
  border-radius: 10px;
}

.page_practices-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.page_practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.page_footer-note {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    
    
    .page_card , .page_best-practices {
margin:8px;
}


  .invoice-generator .content {
    flex-direction: column;
  }

  .generator_container {
    padding: 10px;
    margin: 8px;
  }
  
  
  .page_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
}



















.page_rainbow-glow-button {
  --color-1: 340 100% 50%; /* pink */
  --color-2: 45 100% 50%;  /* yellow */
  --color-3: 220 100% 50%; /* blue */
  --color-4: 160 100% 50%; /* green */
  --color-5: 280 100% 60%; /* purple */

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #121213; /* black button */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  
  transition: all 0.3s ease;
}

.page_rainbow-glow-button::after {
  content: "";
  position: absolute;
  bottom: -8px; /* a little below the button */
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 10px;
  background: linear-gradient(
    90deg,
    hsl(var(--color-1)),
    hsl(var(--color-5)),
    hsl(var(--color-3)),
    hsl(var(--color-4)),
    hsl(var(--color-2)),
    hsl(var(--color-1))
  );
  background-size: 300% 300%;
  filter: blur(8px);
  border-radius: 50px;
  animation: page_rainbowGlowMove 4s linear infinite;
  z-index: -1;
}

.page_rainbow-glow-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.5);
}

.page_rainbow-glow-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes page_rainbowGlowMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

