* {
  box-sizing: border-box;
}

body,
#app-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0;
  color: #fafafa;
  padding: 20px;
  font-weight: lighter;
  font-family: 'Inter', sans-serif;
  gap: 20px;
}

body {
  background-image: linear-gradient(to right top, #5d8a66, #4f8467, #417d67, #347667, #286f67, #1f6967, #176367, #125d66, #125765, #165163, #1b4a5f, #21445b);  background-size: cover;
  background-attachment: fixed;
}
/* Ogólne style dla kart/sekcji */
#product-form,
#income-form,
.tabs {
  background: #45214A;
  padding: 10px;
  border-radius: 10px;
  opacity: 60%;
  max-width: 500px;
  width: 100%;
}


.tabs {
    box-shadow: 0 0 10px #45214A;
}
h2 {
  margin-bottom: 20px;
  text-align: center;
}

/* Formularz */
.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #aaa;
}

.form-group button {
  width: 100%;
  background-color: #fafafa;
  color: #45214A;
  border-radius: 0.5rem;
}
.form-group button:hover {
  background-color: #5D8A66;
  color: #fafafa;
}

/* Przycisk bazowy */
button,
.tab-btn {
  padding: 0.75rem;
  flex: 1;
  background: none;
  color: #fafafa;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

button:hover,
.tab-btn:hover {
  color: #fafafa;
  border-color: #fafafa;
}

.tab-btn.active {
  color: #45214A;
  border-color: #1A6566;
  border-radius: 5px 5px 0px 0px;
  background: #f2f8fc;
}

/* Grupy przycisków */
.button-group,
.tab-buttons,
.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.button-group {
    padding-top: 10px;
    justify-content: right;
}

.actions {
  justify-content: end;
}

.actions button {
  padding: 2px 6px;
  font-size: 12px;
  margin-right: 5px;
}

/* Zakładki */
.tab-content {
  display: none;

}

.tab-content.active {
  display: flex;
  width: 100%;
}

/* Paragon */
.receipt {
  width: 500px;
  background: #45214A;
  padding: 20px;
  opacity: 60%;
  border-radius: 10px;
  font-family: 'Receipt', monospace;
  box-shadow: 0 0 10px #45214A;
}

.receipt .info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.receipt table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.receipt table th,
.receipt table td {
  padding: 5px;
  text-align: left;
}

.receipt .total {
  text-align: right;
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}


.month-year-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.month-year-selector select {
    width: auto;
    flex-grow: 0;
}