<?php session_start();?>
<?php include'includes/header.php'; ?>
<?php include'includes/sidebar.php';?>
<?php include'includes/functions.php';?>
<?php include'includes/navbar.php'; ?>

<style>
@media(max-width: 992px){
.insider{
    margin-top: -50px;
    padding-left: 10px;
    padding-right: 10px;
    }        
}
.insider{
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 30px;
    scrollbar-height:auto;
    -ms-overflow-style: none;
}
.insider::-webkit-scrollbar{
    display: none;
}

.result-sheet {
  background: #fff;
  max-width: 900px;
  margin: auto;
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.result-sheet .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.logo-left img,
.student-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ccc;
}

.school-details {
    flex-grow: 1;
}

.school-details h2 {
    margin: 0;
    font-size: 24px;
}

.action-buttons {
    text-align: right;
    margin-top: 20px;
}

.action-buttons button {
    background: #062d8f;
    color: #fff;
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-buttons button:hover {
    background: #1c4eff;
}
.school-header {
  text-align: center;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.school-header img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}
.school-header h1 {
  font-size: 26px;
  margin-top: 10px;
}
.school-header h4 {
  font-size: 16px;
  font-weight: normal;
}

.student-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 15px;
}
.student-info p {
  margin: 5px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table, th, td {
  border: 1px solid #555;
}

th, td {
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

th {
  background-color: #062d8f;
  color: white;
}

.summary {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.summary div {
  margin: 5px 0;
}

.comment-section {
  margin-top: 25px;
}

.comment-section p {
  font-size: 14px;
  line-height: 1.6;
}

.signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  font-size: 14px;
}

.sign-box {
  width: 45%;
  border-top: 1px solid #444;
  text-align: center;
  padding-top: 5px;
}

@media(max-width: 600px) {
  .student-info {
    flex-direction: column;
  }
  .summary {
    flex-direction: column;
  }
  .signatures {
    flex-direction: column;
    gap: 20px;
  }
  .sign-box {
    width: 100%;
  }
}
@media print {
  .action-buttons {
    display: none;
  }
  body * {
    visibility: hidden;
  }
  #result-sheet, #result-sheet *{
    visibility: visible;
  }
  .insider{
    padding-top: 0;
  }
  .insider{
    margin-top: 0!important;
    padding-left: none !important;
    padding-right: none !important;
  } 

}

@media(max-width: 992px){
.insider{
    margin-top: -50px;
    /*padding-left: 10px;
    padding-right: 10px;*/
    }        
}
:root {
  --primary-color: #084c61;
  --accent-color: #FFA726;
}


.negative{
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.negative i{
    font-size: 70px;
    color: #FE9C13;

}
.negative h5{
    font-size: 20px;
    color: #FE9C13;
}
.negative a{
    padding: 10px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    border-radius: 5px;
    /*font-weight: bold;*/
}
.negative a i{
    font-size: 17px;
    color: #fff;
}
.negative button{
    padding: 10px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    border-radius: 5px;
    outline: none;
    border:none;
    /*font-weight: bold;*/
}
.negative button i{
    font-size: 17px;
    color: #fff;
}
@media(max-width: 992px){
    .card-header h5{
        font-size: 15px;
    }
    .negative h5{
        font-size: 17px;
    }
    .negative p{
        text-align: center;
        font-size: 14px;
        font-family: sans-serif;
    }
    .negative a{
        font-size: 15px ;
    }
}

.card{
  height: auto;
}
</style>


<?php
$notification = 'available';

if ($notification == 'available') {
  $table = "display:none";
  $negat = "display:flex";
  $cont = "display:block";
}else{
  $table = "display:block";
  $negat = "display:none";
  $cont = "display:none";
}






?> 

<div id="notification-containers" class="notification-containers"></div>
<div class="insider">
  <div class="container" style="<?=$cont?>" >
    <div class="cat-pag">

      <div class="card mt-3" >
        <!-- If Empty -->
        <div class="negative" style="<?=$negat?>">
          <i class="fa fa-bell-slash"></i>
          <h5>Oops... No Notifications yet!</h5>
          <p class="text-muted text-center">
            You presently do not have any pending notifications from Vice Principal or Your Class-teacher<br>Your Message will appear here once you have it.
          </p>
          <a href="index.php" class="notifications">
            Okay, Got it <i class="fa fa-check-circle"></i>
          </a>
        </div>
      </div>
    </div>
  </div>
  <div class="" style="<?=$table?>">
    <!-- Display Notifications here -->
    
  </div>



</div>


<?php include 'includes/footer.php'; ?>



<!-- Notifications alert -->
<?php include 'includes/notification-alert-js.php'; ?>

