body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

.header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.title {
  font-size: 24px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: inline-block;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

.nav-links a#logout-link {
  background-color: #e74c3c;
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  margin-left: 24px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-links a#logout-link:hover {
  background-color: #c0392b;
  color: white;
  text-decoration: none;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

.hamburger-icon {
  display: block;
  position: relative;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

/* Hamburger icon animation when open */
.mobile-menu-toggle.open .hamburger-icon {
  background-color: transparent;
}

.mobile-menu-toggle.open .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background-color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

table tr:hover {
  background-color: #f8f9fa;
}

.amount {
  text-align: right;
  font-family: monospace;
}

.time {
  font-family: monospace;
  white-space: nowrap;
}

.mono {
  font-family: monospace;
}

.mono a {
  color: #3498db;
  text-decoration: none;
}

.mono a:hover {
  text-decoration: underline;
}

.table-container {
  margin-bottom: 30px;
  overflow-x: auto;
}

.chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 20px;
  background-color: white;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.download-btn {
  background-color: #4caf50;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background-color: #45a049;
  text-decoration: none;
}

.download-btn::before {
  content: '⬇️';
  margin-right: 5px;
  font-size: 14px;
}

@media screen and (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  table {
    border: 0;
  }

  table thead {
    display: none;
  }

  table tr {
    margin-bottom: 20px;
    display: block;
    border-bottom: 2px solid #ddd;
  }

  table td {
    display: block;
    text-align: right;
    font-size: 13px;
    border-bottom: 1px dotted #ccc;
  }

  table td:last-child {
    border-bottom: 0;
  }

  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }

  .title {
    flex: 1;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
    order: 3;
  }

  .nav-links.open {
    max-height: none;
    margin-top: 15px;
  }

  .nav-links a {
    margin: 5px 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 160px;
  z-index: 10;
  pointer-events: auto;
  margin-top: 0;
  background-color: #2c3e50;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  border-radius: 0;
  transition: background 0.2s;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropbtn:hover,
.dropdown:hover > .dropbtn {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

@media (max-width: 768px) {
  .dropbtn {
    margin: 5px 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
  }
}
