/* ==========================================================================
   Budget Page Styles
   ========================================================================== */

.budget-page-container {
  width: 100%;
}

/* Hero Section */
.budget-hero-section {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: left;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(237, 219, 128, 0.7) 0%,
    rgba(161, 174, 28, 0.8) 33%,
    rgba(77, 101, 40, 0.8) 66%,
    rgba(19, 44, 23, 0.9) 100%
  );
}

.hero-background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/budget-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.budget-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(237, 219, 128, 0.7) 0%,
    rgba(161, 174, 28, 0.8) 33%,
    rgba(77, 101, 40, 0.8) 66%,
    rgba(19, 44, 23, 0.9) 100%
  );
  z-index: 2;
}

.budget-hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #fff;
  padding: 60px 20px;
}

.budget-hero-title {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.budget-hero-subtitle {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 1.4rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Financial Reports Section */
.financial-reports-section {
  padding: 80px 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.section-subtitle {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 1.3rem;
  font-weight: 400;
  color: #666;
}

/* Financial Reports Table */
.financial-reports-table-wrapper {
  margin-bottom: 60px;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.financial-reports-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
}

.financial-reports-table thead {
  background: linear-gradient(
    135deg,
    rgba(237, 219, 128) 0%,
    rgba(161, 174, 28) 33%,
    rgba(77, 101, 40) 66%,
    rgba(19, 44, 23) 100%
  );
  color: #fff;
}

.financial-reports-table th {
  padding: 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.financial-reports-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.financial-reports-table tbody tr:hover {
  background-color: #f8f9fa;
}

.financial-reports-table tbody tr:last-child {
  border-bottom: none;
}

.financial-reports-table td {
  padding: 20px;
  font-size: 1rem;
  color: #333;
}

.financial-reports-table td strong {
  color: #28a745;
  font-size: 1.1rem;
}

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid #28a745;
}

.btn-download:hover {
  background: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.download-icon {
  font-size: 1.2rem;
}

.no-download {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
}

/* No Reports Message */
.no-reports {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 60px;
}

.no-reports h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.no-reports p {
  font-size: 1.1rem;
  color: #666;
}

/* Budget Info Boxes */
.budget-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.info-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid #28a745;
}

.info-box h3 {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.info-box p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .budget-hero-title {
    font-size: 2.5rem;
  }

  .budget-hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  /* Make table responsive with cards */
  .financial-reports-table-wrapper {
    box-shadow: none;
  }

  .financial-reports-table,
  .financial-reports-table thead,
  .financial-reports-table tbody,
  .financial-reports-table th,
  .financial-reports-table td,
  .financial-reports-table tr {
    display: block;
  }

  .financial-reports-table thead {
    display: none;
  }

  .financial-reports-table tbody tr {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .financial-reports-table tbody tr:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  .financial-reports-table td {
    padding: 10px 0;
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .financial-reports-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    font-weight: 600;
    text-align: left;
    color: #555;
  }

  .financial-reports-table td:first-child {
    border-top: none;
    padding-top: 0;
  }

  .financial-reports-table td:last-child {
    padding-bottom: 0;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .budget-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .budget-hero-title {
    font-size: 2rem;
  }

  .budget-hero-subtitle {
    font-size: 1rem;
  }

  .financial-reports-section {
    padding: 60px 0;
  }
}
