@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: #00000000;
  font-family: "Poppins", "Noto Sans Sinhala", sans-serif;
}

:root {
  --one: #007bff;
  --tow: #004fe1;
  --three: rgba(0, 205, 174, 0.5);
  --glass: rgba(255, 255, 255, 0.3);
  --glass2: rgba(255, 255, 255, 0.6);
  --black: rgb(0, 0, 0);
  --white: rgb(255, 255, 255);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow2: rgba(0, 0, 0, 0.5);
}

body {
  height: 100vh;
  background-image: url(../img/content/bg.jpeg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
}

main {
  position: relative;
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  box-sizing: border-box;
}

/* short messages  */
.popup-message {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--shadow2);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  box-shadow: 0 10px 10px var(--shadow);
  border: 1px solid var(--glass);
  backdrop-filter: blur(10px);
  transition: 0.5s;
}

.popup-message a {
  font-weight: bold;
  text-decoration: none;
  color: var(--one);
}

.popup-message.show {
  top: 5px;
  opacity: 1;
}

/* Error messages styles */
.error-messages {
  color: red;
  margin: 10px 0;
}

.error {
  margin: 5px 0;
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#preloader img {
  width: 300px;
}

.header {
  height: 60px;
  background-color: var(--glass);
  backdrop-filter: blur(20px);
  color: var(--black);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
}

.header-toggle-btn {
  background: none;
  border: none;
  color: var(--black);
  font-size: 24px;
  cursor: pointer;
  margin-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--black);
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-name {
  margin: 0;
  font-size: 18px;
}

.company-description {
  margin: 0;
  font-size: 12px;
  color: gray;
}

.sidenav {
  height: calc(100% - 65px);
  width: 250px;
  position: absolute;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  top: 65px;
  left: 0;
  background: var(--glass);
  padding: 20px 5px;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
  transition: 0.5s;
  transform: translateX(0);
  overflow: hidden;
  overflow-y: scroll;
  box-shadow: 0 5px 10px var(--shadow);
}

.sidenav::-webkit-scrollbar {
  width: 0;
}

.sidenav.active {
  transform: translateX(-100%);
}

.fa-angles-right {
  color: var(--tow);
  transition: 0.7s;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--black);
  font-size: 24px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: none;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile a {
  text-align: center;
  text-decoration: none;
  color: var(--black);
}

.profile-pic {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid var(--tow);
  box-shadow: 0 0 10px var(--shadow2);
}

.full-name {
  margin: 0;
  font-size: 16px;
}

.nav-links {
  list-style-type: none;
  padding: 0;
  margin-top: 50px;
  margin-bottom: 20px;
}

.nav-links li {
  padding: 2px 10px;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

.nav-links i {
  margin-right: 10px;
}

.nav-links a:hover {
  background: var(--tow);
  color: white;
}

.content {
  position: relative;
  margin-top: 65px;
  margin-left: 250px;
  height: calc(100vh - 65px);
  overflow: hidden;
  overflow-y: scroll;
  background-color: transparent;
  transition: 0.5s;
  padding: 0 10px;
  scroll-behavior: smooth;
}

.carousel {
  background-color: var(--glass);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 10px var(--shadow);
}

/* login form styles */
.form-center {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-center::-webkit-scrollbar {
  width: 0;
}

.login-container {
  display: flex;
  width: 90%;
  max-width: 900px;
  background: var(--glass);
  box-shadow: 0 8px 32px 0 var(--shadow);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.left-side {
  width: 50%;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.left-side .logo {
  width: 100px;
  margin-bottom: 20px;
}

.left-side h2 {
  color: var(--tow);
  margin-bottom: 10px;
}

.left-side p {
  color: var(--black);
  font-size: 14px;
  line-height: 1.5;
  padding: 0 10px;
}

.right-side {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.right-side h2 {
  color: var(--tow);
  margin-bottom: 30px;
}

.input-box {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tow);
}

.input-box input,
.input-box textarea {
  width: 100%;
  padding: 10px 30px 10px 40px;
  box-sizing: border-box;
  background: var(--glass);
  border: 1px solid var(--three);
  border-radius: 15px;
  outline: none;
  color: var(--black);
  font-size: 16px;
  box-shadow: 0 4px 8px 0 var(--shadow);
  transition: all 0.3s ease;
}

.input-box textarea {
  resize: none;
}

.input-box input:focus,
.input-box textarea:focus {
  border-color: var(--tow);
  background: rgba(255, 255, 255, 0.1);
}

.input-box label {
  position: absolute;
  left: 40px;
  top: 10px;
  color: var(--black);
  pointer-events: none;
  transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label,
.input-box input:read-only ~ label {
  top: -10px;
  left: 40px;
  color: var(--tow);
  font-size: 12px;
}

/* For autofilled inputs */
input:-webkit-autofill ~ label {
  top: 0;
  top: -10px;
  color: var(--tow);
  font-size: 12px;
}

input:-webkit-autofill {
  background-color: #fff !important;
  color: var(--black) !important;
}

.input-box select {
  width: 100%;
  padding: 10px 30px 10px 40px; /* Adjusted padding for consistency */
  box-sizing: border-box;
  background: var(--glass);
  border: 1px solid var(--three);
  border-radius: 15px;
  outline: none;
  color: var(--black);
  font-size: 16px;
  box-shadow: 0 4px 8px 0 var(--shadow);
  appearance: none; /* Hides the default dropdown arrow */
  -webkit-appearance: none; /* Hides the default dropdown arrow in Safari */
  -moz-appearance: none; /* Hides the default dropdown arrow in Firefox */
  transition: all 0.3s ease;
}

.input-box select:focus {
  border-color: var(--tow);
  background: rgba(255, 255, 255, 0.1);
}

.input-box select option {
  background: var(--white);
  color: var(--black);
}

.select::after {
  content: "\f0d7"; /* FontAwesome down arrow icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tow);
  pointer-events: none; /* Makes the arrow non-clickable */
}

#togglePassword {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--tow);
}

.remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me input {
  margin-right: 10px;
}

.login-btn,
.delete-btn {
  width: 100%;
  background-color: var(--tow);
  border: none;
  padding: 10px 20px;
  box-sizing: border-box;
  color: var(--white);
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 8px 0 var(--shadow);
  transition: all 0.3s ease;
}

.delete-btn {
  background-color: red;
  padding: 0 20px;
}

.delete-btn:hover,
.login-btn:hover {
  background-color: var(--one);
  transform: scale(1.05);
}

.delete-btn:hover {
  background-color: tomato;
}

.extra-links {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.forgot-password,
.register-link {
  color: var(--tow);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  margin: 5px 0;
}

.forgot-password:hover,
.register-link:hover {
  color: var(--one);
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  border: none;
  margin-bottom: 20px;
}

.side-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
  overflow: hidden;
  overflow-x: scroll;
}

.side-menu::-webkit-scrollbar {
  background-color: transparent;
  height: 15px;
}

.side-menu::-webkit-scrollbar-thumb {
  background-color: var(--tow);
  border-radius: 10px;
  cursor: grab;
}

.menu-item {
  max-width: 250px;
  min-width: 250px;
  position: relative;
  margin: 20px 0;
}

.menu-item a {
  display: flex;
  height: 250px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: var(--glass);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: var(--black);
  border: 1px solid var(--white);
  box-shadow: 0 0 10px var(--shadow);
  transition: 0.3s;
  text-align: center;
}

.menu-item a:hover {
  background-color: var(--shadow);
  scale: 101%;
}

.menu-item img {
  max-width: 200px;
  width: 90%;
}

#countdown {
  position: absolute;
  top: 10px;
  font-weight: bold;
  color: red;
}

.infomation {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  background-color: var(--glass);
  backdrop-filter: blur(10px);
  padding: 15px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--white);
  box-shadow: 0 0 10px var(--shadow);
}

.infomation img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.blue {
  color: var(--tow);
  font-weight: bold;
}

.about {
  text-align: center;
}

.buttons {
  text-align: center;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--shadow);
  margin-top: 10px;
}

.four {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  justify-content: space-around;
}

.buttons a {
  background-color: var(--tow);
  padding: 10px;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--white);
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  transition: 0.3s;
}

.buttons a:hover {
  background-color: var(--one);
}

.one {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
}

/* To Do styles  */
.todo-container {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px 0 var(--shadow);
  max-width: 600px;
  width: 90%;
  margin: 20px auto;
}

.todo-input {
  margin-bottom: 20px;
}

#todo-form textarea {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  border: none;
  outline: none;
  resize: none;
}

#add-todo {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  border: none;
  background-color: var(--tow);
  color: var(--white);
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  margin-top: 5px;
}

#add-todo:hover {
  background-color: var(--one);
}

.todo-list {
  list-style-type: none;
  padding: 10px;
}

.todo-list li {
  background: var(--glass);
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 250px;
  box-sizing: border-box;
}

.todo-list li .todo-text {
  flex-grow: 1;
  font-family: "Poppins", "Noto Sans Sinhala";
  margin-right: 10px;
}

.todo-list li button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.todo-list li .edit-todo {
  color: var(--tow);
}

.todo-list li .delete-todo {
  color: #ff4d4d;
}

.todo-list li button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Style for the complete checkbox */
.complete-todo {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #4caf50;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-block;
  margin-right: 10px;
  position: relative;
  background-color: #fff;
  padding: 10px;
  box-sizing: border-box;
}

/* Checked state for the checkbox */
.complete-todo:checked {
  background-color: #4caf50;
  /* Green background for checked state */
}

/* Checkmark (created with :after pseudo-element) */
.complete-todo:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 8px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  /* Creates the checkmark */
}

/* notification */
.notification {
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
}

.notification ul {
  list-style-type: none;
  box-sizing: border-box;
}

.notification li {
  border: 1px solid var(--white);
  background-color: var(--glass);
  box-shadow: 0 2px 4px var(--shadow);
  backdrop-filter: blur(10px);
  margin-bottom: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.notification li:hover {
  background-color: var(--shadow);
}

.notification a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: inherit;
}

.notification .title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.notification h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.notification .date {
  font-size: 12px;
  color: #888;
}

.notification .message p {
  font-family: "Poppins", "Noto Sans Sinhala";
}

.no-notifications {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin: 20px 0;
}

/* profile  */
.container {
  width: 100%;
  min-height: 100%;
  background-color: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
  box-sizing: border-box;
  padding: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 2fr;
  justify-content: space-between;
}

.profile-header {
  text-align: center;
  margin-bottom: 20px auto;
  position: relative;
}

.profile-header a {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  padding: 10px;
  border-radius: 30px;
  background-color: var(--tow);
  font-weight: bold;
  color: var(--white);
  transition: 0.3s;
  width: 200px;
}

.profile-header a:hover {
  background-color: var(--one);
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.profile-info {
  text-align: left;
  margin-bottom: 20px;
}

.chart-container {
  margin: auto;
  margin-top: 30px;
  position: relative;
  height: 300px;
  width: 100%;
}

.container canvas {
  width: 100% !important;
  height: 100% !important;
}

.container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  backdrop-filter: blur(10px);
}

.container table th,
.container table td {
  border: 1px solid var(--white);
  padding: 8px;
  text-align: left;
}

.container .details {
  flex: 1;
  margin-right: 20px;
}

.container .exams {
  flex: 1;
}

.container .exams h2 {
  text-align: center;
}

/* papers video tutes and etc */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

#message {
  background-color: #f8d7da;
  color: red;
  padding: 15px;
  box-sizing: border-box;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  position: fixed;
  opacity: 0; /* Initially hidden */
  transform: translateY(-20px); /* Starting off-screen */
  z-index: 9999; /* Ensure it's on top of other content */
  transition: opacity 0.5s, transform 0.5s;
}

.show-message {
  animation: fadeIn 0.5s forwards; /* Fade in animation */
}

.hide-message {
  animation: fadeOut 0.5s forwards; /* Fade out animation */
}

.hidden_message {
  display: none;
}

.no-papers {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  color: #ff0000; /* Red color for emphasis */
  font-weight: bold;
  background-color: var(--glass);
  padding: 50px 30px;
  box-sizing: border-box;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 5px 8px 10px var(--shadow);
}

/* dashboard */
.top-performers {
  width: 100%;
  min-height: 100%;
  background-color: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
  box-sizing: border-box;
  padding: 20px;
}

.class {
  margin-bottom: 30px;
}

.top-students {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

.student-card {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px var(--shadow);
  width: calc(25% - 8px);
  max-width: 200px;
  text-align: center;
  transition: 0.3s;
}

.student-card:hover {
  background-image: url(../../admin/img/cele.gif);
  box-shadow: 0 0 20px var(--shadow);
  transform: scale(1.02);
}

.student-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 5px;
  border: 2px solid var(--tow);
}

.student-card h3 {
  color: var(--one);
  font-size: 0.9rem;
  margin: 5px 0;
}

.student-card p {
  color: var(--black);
  font-size: 0.8rem;
  margin: 3px 0;
}

/* New styles for the More Details card */
.more-details-card {
  background-color: var(--tow);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.more-details-card:hover {
  background-image: none;
  background-color: var(--one);
  transform: scale(1.05);
}

.top-ten-list {
  padding: 20px;
}

/* Search Box */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-box {
  width: 100%;
  max-width: 600px;
  float: left;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.search-box .fa-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #007bff;
}

.paper-list {
  display: flex;
  flex-direction: column;
}

.paper-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--glass);
  backdrop-filter: blur(10px);
  padding: 15px;
  box-sizing: border-box;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px var(--shadow);
  border-radius: 5px;
}

.paper-name {
  flex: 2;
  text-align: left;
  font-weight: 600;
}

.paper-link,
.marking-scheme,
.video-link {
  flex: 1;
  text-align: center;
}

.paper-link a,
.marking-scheme a,
.video-link a {
  text-decoration: none;
  color: var(--tow);
  font-weight: 600;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  position: relative;
}

.video-item {
  background-color: var(--glass);
  backdrop-filter: blur(10px);
  padding: 15px;
  box-sizing: border-box;
  box-shadow: 0 4px 8px var(--shadow);
  border-radius: 5px;
  text-align: center;
}

.video-item h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.video-item iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 5px;
}

/* process page */
.container-process {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 5px 5px 10px var(--shadow);
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 30px auto;
}

.logo-process img {
  width: 100px;
  margin-bottom: 20px;
}

.verification-message {
  background: #ffeb3b;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 5px;
  margin-bottom: 20px;
}

.verification-message p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.user-details {
  margin-bottom: 20px;
}

.user-details p {
  margin: 5px 0;
  color: #555;
}

.actions a {
  display: inline-block;
  margin: 5px 10px;
  padding: 10px 20px;
  box-sizing: border-box;
  color: #fff;
  background: #007bff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.actions a:hover {
  background: #0056b3;
}

/* timetable */
.timtable {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: var(--white);
  box-shadow: 0 0 20px var(--shadow2);
  margin-bottom: 20px;
}

.timtable h2 {
  font-family: "Poppins", "Noto Sans Sinhala";
  text-align: center;
  margin-bottom: 10px;
}

.timtable-aling {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.timtable-aling img {
  width: 100%;
  max-width: 400px;
}

.timtable-list li {
  margin-bottom: 10px;
}

@media screen and (max-width: 1100px) {
  .infomation {
    flex-direction: column;
  }

  .timtable-aling {
    flex-direction: column;
  }
}

@media screen and (max-width: 1000px) {
  .more-details-card {
    width: 100%;
    max-width: 500px;
  }
}

@media screen and (max-width: 768px) {
  .popup-message {
    width: 80%;
  }

  .sidenav {
    height: 100%;
    top: 0;
    z-index: 2;
    transform: translateX(-249px);
  }

  .header-toggle-btn {
    display: block;
  }

  .toggle-btn {
    display: block;
  }

  .sidenav.active {
    transform: translateX(0);
  }

  .header .logo {
    flex: 1;
  }

  .content {
    margin-left: 0;
  }

  .form-center {
    align-items: flex-start;
  }

  .login-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95%;
    margin: 30px 0;
  }

  .left-side,
  .right-side {
    width: 100%;
  }

  .side-menu {
    gap: 10px;
  }

  .menu-item {
    max-width: 160px;
    min-width: 160px;
    margin: 10px 0;
  }

  .menu-item a {
    height: 180px;
  }

  .menu-item img {
    width: 85%;
  }

  .side-menu::-webkit-scrollbar {
    height: 0;
  }

  .about p {
    text-align: justify;
  }

  .infomation img {
    width: 80%;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--tow);
  }

  .four {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 80px;
  }

  .container .details {
    flex: 1;
    margin-right: 0;
  }

  .paper-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .paper-link,
  .marking-scheme,
  .video-link {
    margin-top: 10px;
    text-align: left;
  }

  .video-list {
    grid-template-columns: 1fr;
  }

  .video-item iframe {
    height: 200px;
  }

  .top-performers {
    padding: 10px;
  }

  .student-card {
    width: calc(25% - 8px);
  }

  .student-card img {
    width: 60px;
    height: 60px;
  }

  .student-card h3 {
    font-size: 0.8rem;
  }

  .student-card p {
    font-size: 0.7rem;
  }

  .more-details-card {
    max-width: 1000px;
    width: 81%;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 480px) {
  .timtable h2 {
    font-size: 1.4rem;
  }

  .student-card {
    width: calc(25% - 6px);
  }

  .student-card img {
    width: 50px;
    height: 50px;
  }

  .student-card h3 {
    font-size: 0.7rem;
  }

  .student-card p {
    font-size: 0.6rem;
  }

  .more-details-card {
    max-width: 500px;
    width: 89%;
    font-size: 0.7rem;
  }
}
