body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

h1, h2 {
  text-align: center;
  color: #2563eb;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sale-entry {
  background-color: #f0f7ff;
  padding: 15px;
  border-radius: 4px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-weight: bold;
}

input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="number"], input[type="date"] {
  flex: 2;
}

select {
  flex: 1;
}

textarea {
  height: 80px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

button:hover {
  background-color: #1e40af;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-group select {
  flex: 1;
}

.filter-group button {
  flex: 1;
  padding: 8px;
}

.custom-range {
  display: none;
  flex-direction: column;
}

.error {
  color: #dc2626;
  text-align: center;
  margin-top: 10px;
}

.dashboard {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: 4px;
  text-align: center;
}

.dashboard p {
  margin: 10px 0;
  color: #2563eb;
  font-size: 1.1em;
}

.dashboard span {
  font-weight: bold;
}

.progress-bar {
  background-color: #e5e7eb;
  border-radius: 4px;
  height: 20px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  background-color: #dc2626;
  transition: width 0.5s ease, background-color 0.3s;
}

.progress-bar div.progress-25 { background-color: #f59e0b; }
.progress-bar div.progress-75 { background-color: #10b981; }
.progress-bar div.progress-100 { background-color: #10b981; }

.progress-bar span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 0.9em;
}

.weekly-graph {
  margin-top: 15px;
  display: flex;
  gap: 5px;
  height: 100px;
  align-items: flex-end;
}

.graph-bar {
  flex: 1;
  background-color: #2563eb;
  border-radius: 4px;
  position: relative;
}

.graph-bar span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #2563eb;
  font-size: 0.8em;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.button-group button {
  flex: 1;
}

.notification {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.notification.success {
  background-color: #d1fae5;
  color: #065f46;
}

.back-button {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

.back-button:hover {
  color: #1e40af;
}

.footer-note {
  text-align: center;
  margin-top: 20px;
  color: #4b5563;
  font-size: 0.9em;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  color: #2563eb;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #2563eb;
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}