* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column
}

.main-header {
    background: linear-gradient(145deg, #0d0d2f, #1a1a5e);
    
    /* Add subtle inner shadow for depth */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) inset,
                0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    /* Text style */
    color: #fff;
    text-align: center;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: bold;
    
    /* 3D text effect */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7),
                 0 0 10px rgba(255,255,255,0.2);
    
    /* Optional: rounded bottom corners for style */
    /* border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px; */
}

.main-header,
footer {
    flex-shrink: 0;
}

/* Left */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    filter: brightness(0) invert(1); /* makes it white */
}
.emblem-img {
    width: 110px;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
    margin: auto;

}
.header-right {
    position: relative;
}

/* Profile Box */
.profile-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Circular Profile Image */
.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* makes circle */
    object-fit: cover;
    /* prevents image distortion */
    border: 2px solid white;
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-family: sans-serif;
    padding: 3px;
    font-weight: bold;
}

.username {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ff0000;
}

.profile-info a {
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    padding: 4px;
}

.profile-info a:hover {
    color: white;
    text-decoration: underline;
}

/* Navbar */
nav {
    background: linear-gradient(0deg, #0d0d2f, #1a1a5ea8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) inset, 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
    position: relative;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    /* padding: 0 20px; */
}

nav ul li a {
    display: block;
    padding: 12px 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav ul li a:hover {
    background-color: #2c3e50;
    border-radius: 4px;
}

/* Push logout to right */
nav ul .logout {
    margin-left: auto;
}

.app-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
    /* VERY IMPORTANT */
}

/* Dashboard Area */
.dashboard-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    background: #b0bff27d;
    /* IMPORTANT */
}

/* Grid Layout */
.grid-container {
    flex: 1;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
     margin: 12px auto;

}

/* dashboard content_box */
.dashboard-content-box {
    background: #d8e0f9;
    padding: 20px;
    border-radius: 16px;
    overflow: auto;
    width: 100%;
    max-height: 100%;
    align-self: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 4px solid white;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.5);
    /* allow vertical scroll */

    /* prevent horizontal scroll */
}

/*  except dashboard  use this grid center for other main contents */
.grid-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;

    overflow-y: auto;
    /* SCROLL HERE */
    overflow-x: hidden;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

/* Content Boxes */
.content-box {
    background: #d8e0f9;
    border-top: 4px solid white;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 14px;
    width: auto;
    max-width: 95%;
    /* box-shadow: -9px 3px 12px rgba(0, 0, 0, 0.2); */
    margin:auto;
    height: fit-content;
    position: relative;
    z-index: 1;

}

.grid-center::-webkit-scrollbar {
    display: none;
}

/* Chrome, Safari, Edge */
.child::-webkit-scrollbar {
    display: none;
}

/* Firefox */
.child {
    scrollbar-width: none;
}

/* IE */
.child {
    -ms-overflow-style: none;
}



/* Marquee Style */
.marquee {
    height: 80%;
    overflow: hidden;
    position: relative;
    margin: 34px auto;
}

.marquee-content {
    display: flex;
    flex-direction: column;
    animation: scrollUp 10s linear infinite;
}

.marquee-content a {
    padding: 20px 0;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: bold;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Nav menu .................. */
.menu {
    list-style: none;
    display: flex;
    /* background: linear-gradient(45deg, #00000f9e, transparent); */
    padding: 0;
}

.menu>li {
    position: relative;
}

.menu>li>a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* First Dropdown */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    list-style: none;
    /* padding: 5px 0; */
    width: max-content;
    min-width: 160px;
    border-radius: 6px;
    z-index: 2000;
}

.submenu li a {
    padding: 12px;
    display: block;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Second Level Dropdown */
.dropdown-sub {
    position: relative;
}

.submenu-sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: rgba(0, 0, 0, 0.85);
    list-style: none;
    width: max-content;
    border-radius: 6px;
    border-left: 1px solid white;
    z-index: 2000;
}

/* Hover Effects */
.dropdown:hover>.submenu {
    display: block;
}

.dropdown-sub:hover>.submenu-sub {
    display: block;
}

/* Hover Color */
.menu a:hover {
    background: linear-gradient(45deg, #00000f9e, transparent);
}

/* Footer */
footer {
    background: linear-gradient(145deg, #0d0d2f, #1a1a5e);
    
       /* Add subtle inner shadow for depth */
       box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) inset,
                   0 8px 20px rgba(0, 0, 0, 0.3);
       
       /* Text style */
       color: #fff;
       text-align: center;
       padding: 15px ;
       font-size: 1rem;
       font-weight: bold;
       
       /* 3D text effect */
       text-shadow: 2px 2px 5px rgba(0,0,0,0.7),
                    0 0 10px rgba(255,255,255,0.2);
       
       /* Optional: rounded bottom corners for style */
       border-bottom-left-radius: 5px;
       border-bottom-right-radius: 5px;
    flex-shrink: 0;
}



/* ////////////////   form css ////////////////////// */


/* Form Styling */
form {
    width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    border: 1px solid #d8e0f9;
    box-shadow: inset 1px 3px 8px rgba(0, 0, 0, 0.4), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    background-color: #d8e0f9;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    border-bottom: 3px solid white;
   outline: none;
}
input[type="file"]::file-selector-button {
    background-color: #d8e0f9;
    border-radius: 8px;
    border-top: 5px solid white;
    box-shadow: 0 9px 7px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    outline: none;
    padding: 6px 10px;
    border: none;
    transition: 0.3s ease;
}
/* Input group */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* 
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
} */

/* Button */
button{
    width: 100%;
    padding: 10px;
    background-color: #d8e0f9;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 7px;
    border-top: 3px solid white;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(145deg, #4aaef0, #2f8ac0);

    color: rgb(255, 255, 255);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Reset password link */
.reset-link {
    text-align: center;
    margin-top: 10px;
}

.reset-link a {
    text-decoration: none;
    color: #3498db;
    font-size: 14px;
}

.reset-link a:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.toggle-password:hover {
    color: #000;
}

table {
    width: 100%;
    border-collapse: collapse;
    /* table-layout: fixed; */
}

table th
{
    width: 50%;
    padding: 10px;
    vertical-align: center;
}
table td{
    width: 50%; 
    padding: 10px;
    text-align: center;
}

.auto th,.auto td{
    width: auto; 
    padding: 10px;
    text-align: center;
}

.print-div{
  width: 50;
  font-size: 13px;
  font-family: sans-serif;
}



@page{
    size: A4 Portrait;
    margin: 8mm;
    margin-top: 1mm;
    /* margin-bottom: -9mm; */

  }
  
  @media print{
    .print-div{
      width: 100%!important;
      height: auto!important;
    }
    .content-box{
      background: white;
      max-width:100%!important;
      box-shadow: none!important;
    }
    header,nav,footer,#print{
      display:none!important;
    }
  }

  .boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-items: center;
  }
  .boxes>div{
    background: #d8e0f9;
    width: 100%;
    height: 15vh;
    box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.5);
    border-top: 3px solid white;
    border-radius: 9px;
    display: flex;
    justify-content: center;  /* horizontal center */
    align-items: center;      /* vertical center */
  }
  
  .boxes > div:nth-child(7) {
    grid-column: 3;
  }
  
  .boxes > div:nth-child(8) {
    grid-column: 4;
  }



  .closed-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
  .closed-box {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    animation: fadeIn 0.8s ease-in-out;
    max-width: 400px;
    width: 100%;
    border-top: 5px solid white;
}

/* Heading */
.closed-box h2 {
    color: #b30000;
    margin-bottom: 10px;
    font-size: 28px;
    letter-spacing: 1px;
}

/* Text */
.closed-box p {
    color: #333;
    font-size: 16px;
}

/* Icon */
.closed-box .icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.icon {
    font-size: 50px;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-box-wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.date-box-wrapper div {
 margin-top: 16px;
  padding: 15px 20px;
  border-radius: 8px;
  width: 200px;
  background-color: #d8e0f9;
  text-align: center;
  border-top: 4px solid white;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.5);
}

.date-box-wrapper span {
  font-size: 14px;
  color: #555;
}

.date-box-wrapper strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: #000;
}

.instructions {
  max-width: 900px;
  margin: auto;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.instructions h3 {
  text-align: center;
  color: #2c3e50;
}

.instructions h4 {
  margin-top: 20px;
  color: #34495e;
}

.instructions ol, .instructions ul {
  font-size: 12px;
  padding-left: 20px;
}

.instructions .note {
  color: red;
  font-weight: bold;
}