body {
  background: #181c24;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #e6e6e6;
}

.home-body{
  background: #181c24;
  overflow-y: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #e6e6e6;
}

.navbar {
  width: 100vw;
  height: 10vh;
  min-height: 60px;
  background: #23283a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 1px solid #ffffff;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

.nav-center {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-logo img {
  height: 54px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.nav-item {
  color: #e6e6e6;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-item:hover {
  color: #7abaff;
}



.centered-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: flex-start;
  padding-bottom: 10vh;
}

.title {
  margin-top: 18vh;
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.upload-form {
  position: absolute;
  top: 45vh;
  left: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 2;
  text-align: center;
}

.file-input {
  background: #23283a;
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-input::-webkit-file-upload-button {
  background: none;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s;
  text-align: center;
}

.file-input::file-selector-button {
  background: none;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s;
  text-align: center;
}

.file-input::-webkit-file-upload-button:hover,
.file-input::file-selector-button:hover {
  background: #23283a;
  color: #7abaff;
}

.btn {
  margin: 0;
  padding: 0.8rem 2.2rem;
  border-radius: 2rem;
  background: #007bff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  background: #339cff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Results page styles (widgets, grid, etc) */
.results-grid {
  padding-top: 5vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  padding-left: 5vw;
  padding-right: 5vw;
  margin-right: auto;
  align-items: start;
  position: relative;
}

.invoice-widget {
  grid-column: 1;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem 0.5rem; /* reduced padding */
  margin-bottom: 0.2rem;  /* reduced margin */
  min-width: 180px;       /* slightly smaller min width */
  min-height: 36px;       /* reduced min height */
  max-height: 44px;       /* reduced max height */
  display: flex;
  flex-direction: row;
  align-items: center;
  border-left: 8px solid transparent;
  transition: box-shadow 0.2s;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.invoice-widget.success {
  background: #e6f9e6;
  border-left-color: #28a745;
  max-height: 44px;
}

.invoice-widget.error {
  background: #ffeaea;
  border-left-color: #dc3545;
  max-height: 44px;
}

.invoice-widget.empty {
  background: transparent;
  box-shadow: none;
  border: none;
  cursor: default;
}

.widget-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 500;
  gap: 2rem;
}

.option-widget {
  grid-column: 1;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem 0.5rem; /* reduced padding */
  margin-bottom: 0.2rem;  /* reduced margin */
  min-width: 180px;       /* slightly smaller min width */
  min-height: 36px;       /* reduced min height */
  max-height: 44px;       /* reduced max height */
  display: flex;
  flex-direction: row;
  align-items: center;
  border-left: 8px solid transparent;
  transition: box-shadow 0.2s;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007bff; /* optional: color of tick when selected */
  margin: 0;
}

.widget-filename {
  color: #222;
  margin-right: 2rem;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.widget-total {
  color: #555;
  font-weight: bold;
  margin-left: auto;
  white-space: nowrap;
}

.modal {
  display: none;
  position: absolute;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 0.7rem;
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
  padding: 1rem 1.5rem;
  min-width: 300px;
  max-width: 320px;
  z-index: 1000;
  border: 1px solid #ddd;
  font-size: 1rem;
  color: #222;
  white-space: normal;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-header {
  font-weight: 700;
  font-size: 1.3rem;
  color: #007BFF;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid #007BFF;
  padding-bottom: 0.25rem;
  text-align: center;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem 1rem;
  align-items: start;
}

.modal-content strong {
  font-weight: 600;
  color: #333;
}

.modal-content div {
  padding: 0.1rem 0;
  word-break: break-word;
}

.invoice-pod-link {
  position: absolute;
  left: -2rem;
  top: 50%;
  width: calc(100% + 2rem);
  height: 2px;
  background: linear-gradient(to right, #fff 60%, transparent 100%);
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
}

.grid-title {
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
  min-height: unset;
  min-width: unset;
  max-height: unset;
  color: #fff;
  text-align: center;
  grid-row: 1;
}

.invoice-widget.linked-invoice {
  position: relative;
  z-index: 2;
}

.invoice-widget.linked-pod {
  position: relative;
  z-index: 2;
}

.invoice-connector {
  position: absolute;
  height: 2px;
  background: #fff;
  z-index: 1;
  top: 50%;
  left: calc(100% + 1rem);
  width: calc(100% + 1rem);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.8;
}

::-webkit-scrollbar {
  width: 10px;
  background: #23283a;
}
::-webkit-scrollbar-thumb {
  background: #31374a;
  border-radius: 6px;
}

.invoice-widget .modal {
  display: none;
}

.invoice-widget:hover .modal {
  display: block;
  z-index: 1000;
}



.about-content {
  max-width: 700px;
  margin: 13vh auto 5vh auto; /* vertical margin + horizontal auto centering */
  background: #23283a;
  border-radius: 1.2rem;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  padding: 2.5rem;
  color: #e6e6e6;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 5vh;
  /* margin-left: 5vw;  remove this */
  /* margin-right: 5vw; remove this */
}
.about-content h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}
.about-content ul {
  margin-top: 1.2rem;
  margin-bottom: 0;
  padding-left: 1.2rem;
}
.about-content li {
  margin-bottom: 0.7rem;
}