/* Navbar Styling */


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #17549A;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar h1 {
  margin: 0;
  font-size: 1.5rem;
  color: white; /* Ensure navbar menu text is white */
  position: absolute; /* Absolute positioning */
  left: 50%; /* Move to the middle horizontally */
  transform: translateX(-50%); /* Center-align the text */
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.user-logo {
  display: flex;
  align-items: center;
}

.user-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sidebar Styling */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #222;
  color: white;
  transition: 0.3s;
  padding: 20px;
  z-index: 30;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar li {
  margin: 10px 0;
  cursor: pointer;
  color: white; /* Ensure sidebar menu text is white */
}

.sidebar li:hover {
  text-decoration: underline;
}

/* Main Content Area */
.main-content-area {
  margin-top: 60px; /* Account for fixed navbar height */
  padding: 20px;
}

.main-content {
  padding: 20px;
  background-color: #ffffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* student.css */

/* Wrapper for the text */
.text-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

/* The word animation */
@keyframes slideFromRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* The animation for each word */
.word {
  display: inline-block;
  animation: slideFromRight 1s ease-out forwards;
  margin-left: 1rem;
  opacity: 0;
}

/* Delay for each word to come in */
.word:nth-child(1) {
  animation-delay: 0s;
}
.word:nth-child(2) {
  animation-delay: 1s;
}
.word:nth-child(3) {
  animation-delay: 2s;
}
.word:nth-child(4) {
  animation-delay: 3s;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .navbar h1 {
    font-size: 1.2rem;
  }

  .user-image {
    width: 35px;
    height: 35px;
  }

  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar.open {
    left: 0;
  }

  .main-content-area {
    margin-top: 100px;
  }
}

/* Sidebar Styling for All Devices */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Initially hidden off-screen */
  width: 250px;
  height: 100%;
  background-color: #222;
  color: white;
  transition: 0.3s;
  padding: 20px;
  z-index: 30;
  overflow-y: auto;
}

.sidebar.open {
  left: 0; /* Sidebar slides in */
}

/* Close Button */
.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 29px;
}

.sidebar li {
  margin: 20px 0;
  cursor: pointer;
}

/* Media Queries for Mobile Devices */
@media screen and (max-width: 768px) {
  /* Sidebar Styling */
  .sidebar {
    width: 100%; /* Full width for mobile */
    left: -100%; /* Completely hidden off-screen */
  }

  .sidebar.open {
    left: 0; /* Fully visible */
  }

  /* Main Content Adjustment */
  .main-content-area {
    margin-left: 0; /* No margin for content */
    margin-top: 60px; /* Add spacing for the fixed navbar */
    padding: 15px;
  }

  .main-content {
    padding: 15px;
  }

  table th,
  table td {
    padding: 8px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  /* Sidebar for Extra Small Devices */
  .sidebar {
    width: 100%; /* Take full width of the screen */
    left: -100%; /* Hide initially */
  }

  .sidebar.open {
    left: 0; /* Fully visible */
  }

  /* Navbar Toggle for Small Devices */
  .sidebar-toggle {
    font-size: 35px; /* Larger toggle icon */
  }

  /* Adjust Main Content */
  .main-content-area {
    margin-left: 0; /* Content doesn't shift */
    margin-top: 120px; /* Add more margin for smaller devices */
    padding: 10px;
  }

  .main-content {
    margin-top: 20px;
    padding: 10px;
  }

  /* Table Styling for Small Devices */
  table th,
  table td {
    padding: 6px;
    font-size: 12px;
  }
}
