/* ======= BASE STYLES ======= */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #FFE4F4, #8AF1FF);
  margin: 0;
  color: #1A1A40;
}

h1, h2 {
  color: #1A1A40;
  margin: 10px 0;
}

.hidden {
  display: none !important;
}

/* ======= CONTAINER ======= */
.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 24px;
  background-color: #ffffffeb;
  border-radius: 12px;
  box-shadow: 0 0 15px #A694FF;
}

/* ======= LOGIN SECTION ======= */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to top left, #FFE4F4, #A694FF);
}

.login-container {
  background: white;
  padding: 32px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px #5B5AA4;
  width: 320px;
}

.logo {
  width: 160px;         /* You can adjust the size */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05); /* Optional zoom on hover */
}


/* ======= FORMS ======= */
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #A694FF;
  font-size: 0.95rem;
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #5B5AA4;
  box-shadow: 0 0 5px #A694FF;
  outline: none;
}

/* ======= BUTTONS ======= */
button {
  padding: 8px 14px;
  border: none;
  background-color: #5B5AA4;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

button:hover {
  background-color: #1A1A40;
  transform: scale(1.04);
}

/* Button groups compact */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.button-group button {
  font-size: 0.85rem;
  padding: 6px 10px;
}

.button-group button.active {
  background-color: #FF9DAE;
  border: 2px solid #1A1A40;
}

/* ======= TABLE ======= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13.5px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: center;
}

th {
  background-color: #FCE6E6;
}

tr:hover {
  background-color: #FFE4F4;
}

/* ======= UTILITY BUTTONS ======= */
#logoutBtn,
.back-button {
  position: fixed;
  top: 12px;
  right: 12px;
  background-color: #FF9DAE;
  color: #1A1A40;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
}

.back-button {
  bottom: 16px;
  top: auto;
  background: #A694FF;
  color: white;
}

/* ======= FILTERS ======= */
.filters {
  display: flex;
  gap: 16px;
  padding: 16px;
  justify-content: center;
  flex-wrap: wrap;
  background: #FFE4F4;
  border-radius: 8px;
  margin: 20px 0;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.filter-group select {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #A694FF;
  border-radius: 4px;
}

/* ======= CHARTS ======= */
.chart-container {
  width: 95%;
  max-width: 800px;
  margin: 25px auto;
  background: #FCE6E6;
  padding: 18px;
  border-radius: 10px;
}

.totals {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 16px;
  color: #1A1A40;
}

/* ======= PRINT MODE ======= */
@media print {
  body * {
    visibility: hidden;
  }

  .container, .container * {
    visibility: visible;
  }

  .container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  #logoutBtn, .back-button, .filters, .chart-container {
    display: none !important;
  }
}
