/* Global dark theme */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #0b1020; /* deep midnight */
  color: #e5e7eb; /* light gray */
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #111827; /* dark slate */
  border-bottom: 1px solid #1f2937;
}

.app-header h1 {
  margin: 0;
  font-size: 22px;
}

.header-controls {
  display: flex;
  gap: 10px;
}

.header-controls input[type="file"],
.header-controls button {
  background-color: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.header-controls button:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.tabs {
  padding-top: 1.5em;
}

/* Tab bar */
.tab-bar {
  display: flex;
  padding: 8px 24px;
  background-color: #020617; /* very dark navy */
  border-bottom: 1px solid #1f2937;
}

.tab-btn {
  background-color: #111827;
  color: #e5e7eb;
  border: none;
  padding: 10px 16px;
  margin-right: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.tab-btn.active {
  background-color: #2563eb; /* bright blue */
  color: #f9fafb;
}

.tab-btn:hover {
  background-color: #1d4ed8;
}

/* Tab content container */
.tab-container {
  padding: 16px 24px;
}

/* Panels */
.panel {
  background-color: #111827;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #1f2937;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Tab content visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid #374151;
  padding: 8px;
  font-size: 14px;
}

.heading-col {
  background-color: #1d4ed8; /* header blue */
  color: #f9fafb;
}

/* Sorting buttons */
.sort-btn {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  color: #f9fafb;
}

.sort-btn:hover {
  text-decoration: underline;
}

.sort-arrow {
  margin-left: 6px;
  font-size: 16px;
  font-weight: bold;
}

/* Highlighted row */
tr.highlighted {
  background-color: #facc15; /* yellow */
  color: #111827;
}

/* Select dropdown */
select {
  padding: 4px;
  background-color: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 4px;
}

/* Monthly summary table */
.monthly-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.monthly-summary-table th,
.monthly-summary-table td {
  border: 1px solid #374151;
  padding: 8px;
}

.monthly-summary-table th {
  background-color: #1d4ed8;
  color: #f9fafb;
}

/* Monthly breakdown table */
.monthly-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.monthly-table th,
.monthly-table td {
  border: 1px solid #374151;
  padding: 6px;
}

.monthly-table th {
  background-color: #1f2937;
  color: #e5e7eb;
}

/* Prevent the first row from being styled as a header */
#expensesByMonthTable tbody tr.month-header-row {
  background: #e8e8e8 !important;
  font-weight: bold !important;
  color: #000 !important;
}

/* Prevent ANY auto-header styling */
#expensesByMonthTable tbody tr.month-header-row td {
  background: #e8e8e8 !important;
}

#transactionsTable tr:nth-child(1) {
   background-color: #2d3e50 !important;
  font-weight: bold !important;
  color: white !important;   
  font-size: 2em !important;
}
