/* General Body Styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #eef2f7;
  color: #333;
  margin: 0;
  padding: 0;
}
@page {
    margin: 0.3cm;
    size: A4;
}
/* Report Container */
.report-container {
  width: auto;
  margin: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid #0b722d; /* green instead of blue */
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  page-break-after: always;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #0b722d; /* green */
  padding-bottom: 15px;
  gap: 20px;
}

.header .logo img {
  max-height: 80px;
}

.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: #0b722d; /* green */
}

.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: #0b722d; /* green */
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.marks-table tr:nth-child(even) td {
  background: #f4f9ff;
  color:black;
}

.marks-table tr:hover td {
  background: #eaf4ff;
}

.total-row td {
  background: #0b722d; /* green */
  color: #fff;
  font-weight: 600;
}

/* Remarks */
#remarks_marksheet {
  font-size: 15px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 30px;
  border: 1px solid #0b722d; /* green border */
  padding: 8px;
  color: #2c3e50;
  background: #e6f4ea; /* light green background */
  border-radius:8px; /* rounded corners */
}

/* Signatures */
.signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.signature-item {
  text-align: center;
  width: 40%;
  border-top: 1px solid #0b722d; /* green */
  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;
}

/* Upload Marksheet Button */
#submit_marksheet {
  background-color: #0b722d; /* green */
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submit_marksheet:hover {
  background-color: #09591f;
  transform: translateY(-2px);
}

#submit_marksheet:active {
  background-color: #084119;
  transform: translateY(1px);
}

/* Print Media */
@media print {
  @page {
    size: A4;
     margin: 30px 0; 
  }

  body {
    background: #fff;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-container{
       page-break-after: always;
  }
  .marks-table{
      border-collapse:collapse !important;
  }
    .logo{
        display:none;
    }
    .school-name{
        display:none;
    }
    .header{
        border-bottom: 0.5px solid gray;
    }
    .student-info{
        background:white;
    }
    .marks-table th{
    background: transparent;
    color: #000;
    }
 
    .marks-table tr:nth-child(even) td{
        background:white;
    }
  .report-container {
    margin: 10mm auto;
    padding: 13px 18px;
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
    width: auto;
  }
  .progress-report-title{
      color:black;
  }
  /* Remarks print */
  .remarks {
    background: none !important;
    /*border: 1px solid #000 !important;*/
    color: #000 !important;
    padding: 5px !important;
    border-top:0.5px solid gray;
  }

  /* Hide upload button in print */
  #submit_marksheet {
    display: none !important;
  }
  #remarks_marksheet{
      border:1px solid black;
       background: transparent;
        padding: 4px;
        font-size: 13px;
  }
  .signature-item{
      border-top: 0.5px solid gray;
  }
  .disclaimer{
      color:black;
  }
}
