/* General Body Styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #eef2f7;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Report Container */
.report-container {
  width: auto;
  margin: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid #2c3e50;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 15px;
  gap:20px;
}

.header .logo img {
  max-height: 80px;
  /*margin-bottom: 10px;*/
}

.school-name {
  font-size: 24px;
  font-weight: 800;
  margin: 5px 0;
  letter-spacing: 1px;
  color: #2c3e50;
}

.affiliation-details {
  display: flex;
  flex-direction: column; 
  align-items: center;  
  gap:10px;
  font-size: 14px;
  color: #555;
  margin: 5px 0;
}
.affiliation-details p {
  margin: 2px 0; 
}

/* Progress Report Title */
.progress-report-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 15px 0 5px 0;
  text-transform: uppercase;
  color: black;
}

.session-info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #777;
  font-style: italic;
}

/* Student Info */
.student-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin: 25px 0;
  font-size: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9fbfd;
}

.student-info-item .label {
  font-weight: 600;
  margin-right: 5px;
  color: #2c3e50;
}

.student-info-item .value {
  font-weight: 500;
  color: #444;
}

/* Marks Table */
.marks-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.marks-table th,
.marks-table td {
  border: 1px solid #ccc;
  padding: 12px 14px;
  text-align: center;
}

.marks-table th {
  background: #3498db;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.marks-table tr:nth-child(even) td {
  background: #f4f9ff;
}

.marks-table tr:hover td {
  background: #eaf4ff;
}

.total-row td {
  background: #2c3e50;
  color: #000000;
  font-weight: 600;
}

/* Remarks */
.remarks {
  font-size: 15px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 30px;
  border-top: 2px solid #0b722d;
  padding-top: 12px;
  color: #2c3e50;
  
}

/* Signatures */
.signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.signature-item {
  text-align: center;
  width: 40%;
  border-top: 1px solid #444;
  padding-top: 8px;
}

.signature-label {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
}

/* Date */
.date {
  margin-top: 25px;
  font-size: 14px;
  color: #000000;
  font-style: italic;
}

/* Disclaimer */
.disclaimer {
  margin-top: 35px;
  font-size: 12px;
  color: #ff0505;
  text-align: center;
  border-top: 1px solid #b2b6b9;
  padding-top: 10px;
}

@media print {
  @page {
    size: A4;
    margin: 30px; /* small margin around the page */
  }

  body {
    background: #fff;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact; /* preserve colors */
    print-color-adjust: exact;
  }

  .report-container {
    margin: 0;       /* give a bit of space from edges */
    padding: 16px 20px;      /* a little more padding inside */
    box-shadow: none;
    border: 1px solid #000;
    page-break-after: always;
    page-break-inside: avoid;
    width: auto;             /* don’t stretch to full width */
  }
  .affiliation-details p {
      margin: 1px 0; 
    }

  .header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  
  .header .logo img {
     max-height: 50px;
  /*margin-bottom: 10px;*/
  }
  .school-name{
    font-size:20px;
  }
  /* Table header color same as screen */
  /*.marks-table th {*/
  /*  background: #3498db !important;*/
  /*  color: #fff !important;*/
  /*  font-weight: 700;*/
  /*  text-transform: uppercase;*/
  /*  -webkit-print-color-adjust: exact;*/
  /*  print-color-adjust: exact;*/
  /*  padding: 10px 12px;*/
  /*}*/


    .marks-table th{
    background: #3498db;
    color: white;
    font-weight:200px;
    }

  .marks-table td {
    padding: 8px 12px;
    font-size: 13px;
  }

  .remarks {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-top: 8px;
  }

 .signatures {
    margin-top: 50px; /* normal spacing */
    page-break-inside: avoid;
  }

  /* Add extra top margin when printing */
  .signatures {
    margin-top: 70px; /* more space from previous content */
  }

  .signature-item {
    padding-top: 5px;
  }

  .date {
    margin-top: 12px;
    font-size: 13px;
  }

  .disclaimer {
    margin-top: 15px;
    font-size: 11px;
    padding-top: 5px;
  }
}




