@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;800&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  background-color: white;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 75px;
  background-color: white;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  z-index: 800;
  transition: width 0.3s ease;
  overflow: hidden;
}

.sidebar:hover {
  width: 250px;
}

.profile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 120px;
  margin-bottom: 10px;
}

.profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #233866;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.1);
}

.profile-name {
  text-align: center;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .profile-name {
  opacity: 1;
}

.profile-name .username {
  font-weight: bold;
  font-size: 14px;
  color: #233866;
}

.profile-name .status-online {
  font-size: 12px;
  color: green;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  width: 100%;
}

.nav-item {
  width: 100%;
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  color: #555;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link i {
  font-size: 20px;
  width: 20px;
  text-align: center;
}

.nav-link .label {
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.sidebar:hover .nav-link .label {
  opacity: 1;
}

.nav-link:hover {
  background-color: #f0f0f0;
}

.nav-link.active {
  background-color: #233866;
  color: white;
}

.nav-link.active i {
  color: white;
}

.sidebar:hover .nav-link::after {
  display: none !important;
}

.dropdown .chevron-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  display: none;
  flex-direction: column;
  padding-left: 40px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu li {
  padding: 10px 0;
}

.dropdown-menu li a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  color: #233866;
}

.content {
  transition: margin-left 0.3s ease, padding 0.3s ease;
  margin-left: 75px;
  padding: 100px 20px 0px 20px;
  position: relative;
  z-index: 0;
}

.sidebar:hover ~ .content {
  margin-left: 250px;
  padding-left: 40px;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 900;
  transition: 0.5s ease;
  transform: translateX(0);
}

.header-top {
  background-color: #e6e6e6;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
  transition: padding 0.5s ease, transform 0.5s ease;
}

.header-top-left {
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.logo {
  height: 70px;
  object-fit: contain;
  padding-top: 5px;
}

.header-top-right{
  padding-top: 5px;
  padding-right: 20px;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: transparent;
  color: #233866;
  border: 3.5px #233866;
  border-style: solid;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.logout-button i {
  padding-top: 1px;
  font-size: 16px;
}

.logout-button:hover {
  background-color: #233866;
  color: white;
}

.header-bottom {
  background-color: #233866;
  color: white;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.title {
  font-family: "Bookman Old Style";
  font-size: 35px;
  font-weight: bolder;
  color: #233866;
  padding-left: 5px;
  padding-top: 5px;
  letter-spacing: 1px;
  text-decoration: none;
}

.container {
  max-width: auto;
  margin: 5px auto;
  background-color: white;
  padding: 10px 30px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  color: #333;
  margin: 0;
  padding: 20px;
}

h1 {
  font-size: 24px;
  font-weight: bold;
}

h2 {
  font-size: 28px;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  background-color: #f0f0f0;
}

th, td {
  border: 1.5px solid rgb(148, 148, 148);
  text-align: center;
  padding: 10px;
  font-size: 16px;
  color: black;
  font-weight: bold;
}

.info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
}

.info-kegiatan {
  flex: 2;
}

.info-kegiatan h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

.legend {
  flex: 1;
}

.legend ul {
  list-style: none;
  padding-left: 0;
}

.legend li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.info-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: space-between;
}

.card {
  padding: 0px 25px;
  flex: 1 1 45%;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #233866;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

.info-konten p {
  margin-bottom: 10px;
  color: #333;
  font-weight: normal;
  line-height: 1.4;
}

.legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}

.box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

.box-black { background-color: #333; }
.box-yellow { background-color: #fdd835; }
.box-gray { background-color: #bdbdbd; }
.box-red { background-color: #e53935; }

.gray {
  color: #9e9e9e;
  font-weight: bold;
}

.yellow{
  color: #ffeb3b;
  font-weight: bold;
}

.red{
  color: red;
  font-weight: bold;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

.popup-trigger {
  cursor: pointer;
}

.tanggal{
  padding-bottom: 20px;
}

.mata-kuliah{
  padding: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 500px;
  height: auto;
  border-radius: 10px;
  z-index: 1200;
}

.modal-header {
  font-weight: bolder;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 24px;
  margin-bottom: 20px;
}

.nav-arrow {
  cursor: pointer;
  font-size: 24px;
  user-select: none;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.month {
  background: #e0e0e0;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}
.month:hover {
  background: #d0d0d0;
}

.month-name, .year:hover {
  cursor: pointer;
}

