body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: #212529;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #ffffff;
  flex-wrap: wrap;
}

.navbar h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.menu.desktop {
  display: flex;
  gap: 10px;
}

.menu.desktop a,
.menu.mobile a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 12px;
  background-color: #343a40;
  border-radius: 4px;
}

.menu.desktop a:hover,
.menu.mobile a:hover {
  background-color: #495057;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* Mobile menu */
.menu.mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #212529;
  border: 1px solid #444;
  padding: 10px;
  z-index: 999;
}
.menu.mobile.active {
  display: flex;
}

/* Kalender */
#calendar {
  max-width: 100%;
  margin: 20px auto;
  padding: 0 10px;
}

/* Event */
.fc-event {
  color: #fff !important;
  padding: 2px 4px;
  font-size: 14px;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Hari Minggu */
.fc-day-sun {
  background-color: #ffe3ec;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 6px;
  width: 90%;
  max-width: 400px;
}

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

/* Form & Tombol */
input[type="text"], select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
}

label {
  font-weight: bold;
}

button {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

/* ========================== */
/* FULLCALENDAR HEADER STYLE */
/* ========================== */

.fc .fc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  padding: 10px;
  flex-direction: row;
}

.fc .fc-toolbar > div {
  display: flex;
  align-items: center;
  flex: 1 1 0%;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.fc .fc-toolbar-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc .fc-button-group {
  display: flex;
  gap: 4px;
}

.fc .fc-button {
  background-color: #3498db;
  border: none;
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.fc .fc-button:hover {
  background-color: #2980b9;
}

.fc .fc-button-primary:disabled {
  background-color: #95a5a6;
  cursor: default;
}

/* ========================== */
/* RESPONSIVE LAYOUT MOBILE  */
/* ========================== */

@media screen and (max-width: 768px) {
  .menu.desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .fc-toolbar {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px;
  }

  .fc .fc-toolbar > div {
    flex: 1 1 0%;
    justify-content: center;
    min-width: 0;
  }

  .fc .fc-toolbar-title {
    font-size: 16px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #calendar {
    padding: 5px;
  }

  .modal-content {
    width: 95%;
  }

  button {
    width: 100%;
    margin-top: 5px;
  }

  .fc .fc-daygrid-day-frame {
    padding: 2px !important;
  }

  .fc-event {
    font-size: 11px !important;
    padding: 2px 3px !important;
    line-height: 1.2 !important;
  }

  .fc-button {
    font-size: 12px !important;
    padding: 5px 8px;
  }
}

/* Untuk menjaga tinggi sel meskipun kosong */
.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  min-height: 3em;
}

@media screen and (max-width: 500px) {
  .modal-content {
    margin: 20% auto;
    padding: 15px;
    width: 95%;
  }

  .fc .fc-daygrid-day-frame {
    padding: 1px !important;
  }
}





