/* reports.css */

body { 
  font-family: 'Poppins', sans-serif; 
  color: #333; 
  background-color: #ffffff;
}

.hero-bg {
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('/assets/images/hero-reports.jpg');
  background-size: cover;
  background-position: center;
}

.accent-teal {
  color: var(--teal);
}

.section-surface {
  background: #f9fafb;
}

.section-alt {
  background: #ffffff;
}

.report-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 3rem;
}

.report-tabs button {
  padding: 1rem 1.5rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-tabs button:hover {
  color: var(--teal);
}

.report-tabs button.active {
  border-color: var(--teal);
  color: var(--teal);
}

.report-section {
  display: none;
}

.report-section.active {
  display: block;
}

.report-card {
  background: #ffffff; /* White like PDF */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* PDF-like shadow */
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  border: 2px solid #d3d3d3; /* Thicker PDF border */
}

.report-card:hover {
  transform: translateY(-5px);
}

h1, h2, h3 {
  color: #007BFF; /* Blue headings from PDF */
}

.purple-text {
  color: #ffffff; /* White text on purple */
  background-color: #800080; /* Purple for '98' */
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 2.5rem;
}

/* PDF Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f0f8ff; /* Light blue background like PDF header */
  border-radius: 8px;
  border: 1px solid #d3d3d3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo-img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #d3d3d3; /* Slight border for logo */
}

.school-name {
  font-size: 2rem;
  font-weight: bold;
  color: #007BFF;
  flex: 1;
  margin-left: 1rem;
}

/* Table Styles to Match PDF */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 2px solid #007BFF; /* Thicker blue outer border like PDF */
  border-radius: 8px;
  background-color: #f0f8ff; /* Light blue background */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th {
  background-color: #007BFF; /* Enhanced blue header */
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid #0056b3; /* Darker border for depth */
}

td {
  padding: 1rem;
  border-bottom: 1px solid #d3d3d3;
  text-align: left;
  background-color: #ffffff;
}

tr.font-bold td {
  background-color: #e6f2ff; /* Light blue for totals */
  font-weight: bold;
  border-top: 2px solid #007BFF; /* Blue top border for totals */
}

/* Icon Integration for Tables */
.icon-cell {
  display: flex;
  align-items: center;
}

.icon-cell::before {
  content: '●'; /* Circle icon like in PDF notes */
  color: #007BFF;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Responsive Table */
@media (max-width: 768px) {
  table {
    border: 0;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 2px solid #ddd;
    display: block;
    margin-bottom: 1rem;
    background-color: #f0f8ff; /* Maintain light blue */
    border-radius: 4px;
  }

  td {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    border-bottom: 1px dotted #ccc;
    position: relative;
    padding-left: 50%;
    background-color: #ffffff;
  }

  td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 1rem;
    font-weight: bold;
    text-align: left;
    color: #007BFF; /* Blue labels */
  }

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

/* Mobile optimizations */
@media (max-width: 768px) {
  .report-tabs {
    flex-direction: column;
  }

  .report-card {
    padding: 1.25rem;
  }

  .logo-container {
    flex-direction: column;
    text-align: center;
  }

  .school-name {
    margin-left: 0;
    margin-top: 1rem;
  }

  .purple-text {
    margin-top: 1rem;
  }
}

/* More PDF Accurate Borders */
.table-wrapper {
  border: 3px solid #007BFF; /* Even thicker for accuracy */
}

.report-card {
  border: 3px solid #d3d3d3; /* Thicker for main cards */
}

/* Additional PDF Matching Styles */
.report-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333; /* Dark text */
}

.report-card h3 {
  margin-top: 2rem;
  border-bottom: 1px solid #d3d3d3; /* Underline for sections */
  padding-bottom: 0.5rem;
}

.font-bold {
  font-weight: bold;
}

.text-right {
  text-align: right;
}