body {
  font-family: "Noto Sans Gujarati", sans-serif, Arial;
  padding: 20px;
  max-width: 600px;
  margin: auto;
  background: #fffdf7;
  color: #333;
}

h1 {
  text-align: center;
  color: #007b5e;
  margin-bottom: 5px;
}
h3 {
  text-align: center;
  margin-top: 0;
  color: #555;
  margin-bottom: 25px;
}


.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* Center both horizontally */
  gap: 10px;                 /* Space between logo & title */
  margin-bottom: 15px;
}

.header-logo {
  width: 100px;               /* Small compact logo */
  height: auto;
}

.header-title {
  font-size: 20px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.logo {
  text-align: center;
  margin: 0;               /* Remove extra space */
  padding: 5px 0;          /* Very small padding */
}

.logo img {
  width: 130px;            /* Reduce size from 200px → 130px */
  height: auto;
  display: inline-block;
}

h3 {
  margin-top: 5px;         /* Reduce space above */
  margin-bottom: 10px;     /* Reduce space below */
  font-size: 20px;         /* Slightly smaller heading */
}


label {
  display: block;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
}

.flex-row {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  margin-top: 20px;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 5px;
  color: white;
}

button.calculate {
  background-color: #007bff;
}
button.pdf {
  background-color: #28a745;
}
button.reset {
  background-color: #dc3545;
}
button.save {
  background-color: #ffa500;
}

.result {
  margin-top: 30px;
  padding: 20px;
  background-color: #e8f5e9;
  border: 1px solid #2e7d32;
  border-radius: 5px;
}

.result p {
  font-size: 16px;
  margin: 6px 0;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
}

/* Toast Style */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 16px;
}

.toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/* Loader */
#loader {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
}

#loader .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Modal style */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  color: black;
}

#totalAmountModal {
  font-size: 20px;
  font-weight: 700;
}


button.calculate,
button.reset {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

/* Calculate Button Style */
button.calculate {
  background: #2196F3;
  color: white;
}

/* Reset Button Style */
button.reset {
  background: #f44336;
  color: white;
}

/* Better spacing between buttons */
button + button {
  margin-top: 12px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  button.calculate,
  button.reset {
    font-size: 20px;
    padding: 16px;
  }
}
