body {
  height: 100%;
  overflow: hidden;
  background-color: #f2edae89;
}

.navbar {
  position: sticky;
  top: 0;
  background-color: #efca6c;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.lomihub-navbar-text {
  font-family: 'Lilita One', cursive;
  color: #1c1c1c;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 2px;  
  margin-bottom: 5.8px;
}

.navbar-brand {
  display: flex;
  align-items: flex-end; /* or center, or baseline for different effects */
}

/* Move logo further left */
.navbar-brand .logo {
  margin-right: 0 !important;
  height: 53px;
  border-radius: 53px;
  margin-left: -70px; /* Reduced from 30px to move logo left more */
}

/* Push right-side icons further right */
.navbar-nav.ms-auto {
  margin-left: auto !important;
  padding-right: 10px;
  /* font-family: "Times New Roman", Times, serif; */
  font-size: 19px;
}
.navbar-nav .nav-link {
  font-family: 'Alfa Slab One', cursive;
  font-weight: 500;
  margin-right: 1.5rem; /* Increased spacing between icons */
}

/* .navbar-nav .nav-link.active {
  text-decoration: underline;
} */

/* Extra right margin for logout icon */
.navbar-nav .nav-link:last-child {
  margin-right: 0;
  padding-right: 5px; /* Additional padding for logout */
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f0f0f0;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 0 4px;
  cursor: pointer;
}
.navbar-nav .icon-circle.active {
  background: #f7de5e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-circle:hover {
  background: #f7de5e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
  }
  .navbar-nav .nav-link {
    margin-right: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  .logo {
    margin-left: 10px; /* Adjusted for mobile */
  }
  .navbar-brand .logo {
    margin-left: 0; /* Reduced from 30px to move logo left more */
  }
  .lomihub-navbar-text {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 1200px) {
  .navbar-nav {
    flex-direction: row;
    justify-content: center;
  }
  .navbar-nav .nav-link {
    margin-right: 1rem; /* Adjusted for larger screens */
  }
  .navbar-brand .logo {
    margin-left: 0; /* Reduced from 30px to move logo left more */
  }
}

/* Mobile Side Navbar Styles */
.mobile-nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 190px;
  background: #efca6c;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15); /* shadow on the left side */
  z-index: 1051;
  transform: translateX(100%); /* changed from -100% */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 1rem;
  overflow-y: auto;
  display: block;
}
.mobile-nav-sidebar .mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem 1rem 1rem;
}
.mobile-nav-sidebar .close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  line-height: 2;
}
.mobile-nav-sidebar ul.navbar-nav {
  padding-left: 0;
}
.mobile-nav-sidebar .nav-link {
  font-size: 1.1rem;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
}
.mobile-nav-sidebar .nav-link:hover,
.mobile-nav-sidebar .nav-link.active {
  background: #f7de5e;
  color: #111111;
}
.mobile-nav-sidebar .icon-circle {
  margin-right: 10px;
}
.mobile-nav-sidebar.show {
  transform: translateX(0);
}
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1050;
  display: none;
}
.mobile-nav-backdrop.show {
  display: block;
}

/* Hide Bootstrap collapse on mobile, show on desktop */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
  .mobile-nav-sidebar {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-nav-sidebar,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

.modal-dialog {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  pointer-events: none; /* allow clicks only inside modal-content */
}
.modal-content {
  pointer-events: auto;
  background: #efca6c; /* changed from #efca6cd1 to solid */
  border-radius: 2rem;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

/* Modal body text */
.modal-body {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Modal footer with vertical stacked buttons */
.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  border-top: none;
  align-items: center;
}

/* Logout button styling */
.btn-logout {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #514f4f;
  background-color: #f3f4f6;
  border: 2px solid #979797;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.btn-logout:hover,
.btn-logout:focus {
  background-color: #e6e2e2;
  color: #111827;
  text-decoration: none;
}

/* Cancel button styling */
.btn-cancel {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #514f4f;
  background: transparent;
  border: 2px solid #979797;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}
.btn-cancel:hover,
.btn-cancel:focus {
  background-color: #efca6c;
  color: #374151;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem 1rem;
    max-width: 90vw;
  }
  .modal-title {
    font-size: 1.8rem;
  }
  .modal-body {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .btn-logout {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  .btn-cancel {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .modal-content {
    max-width: 320px;
    padding: 1.75rem 1.5rem;
  }
  .modal-title {
    font-size: 2.1rem;
  }
  .modal-body {
    font-size: 1rem;
    margin-bottom: 2.25rem;
  }
  .btn-logout {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }
  .btn-cancel {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}


/* MAIN*/

/* --- Main Layout --- */
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* keep top aligned */
  padding: 0 1rem;
}


/* Heading */
.notif-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}

/* Actions aligned beside title */
.notif-actions {
  display: flex;
  gap: 8px;
  margin: 0;
  padding-top: 0.5rem; /* match title’s top padding */
}

.notif-btn {
  padding: 8px 16px;
  border: 1px solid #28a745;
  background-color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  height: 38px; 
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-btn:hover {
  background-color: #d6ded8;
  color: rgb(0, 0, 0);
  transition: background-color 0.3s, color 0.3s;
}

.notif-btn.danger {
  border-color: #dc3545;
  color: #dc3545;
}

.notif-btn.danger:hover {
  background-color: #f6cace;
  color: rgb(0, 0, 0);
}

#noNotifMessage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  justify-content: center;
}

.notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem;
  flex-wrap: wrap;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
  flex-shrink: 0;
}

.notif-dot.green {
  background-color: #28a745;
}

.notif-dot.gray {
  background-color: #ccc;
}

.notif-item p {
  flex: 1;
  margin: 0 10px;
  font-size: 1rem;
  min-width: 200px;
}

.notif-time {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
  margin: 0 12px 12px 12px;

}

#NotificationArea {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background-color: #28a745;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  min-width: 250px;
  max-width: 90vw;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* --- Responsive Styles --- */
@media (max-width: 600px) {
  .notif-header {
    flex-direction: column;   /* stack title and actions */
    align-items: flex-start;  /* left align under title */
    gap: 0.5rem;
  }

  .notif-title {
    font-size: 1.5rem;
  }

  .notif-btn {
    font-size: 0.95rem;
  }


  .notif-actions {
    width:100%;
    justify-content: flex-start;
    gap: 5px;
    padding-top: 0;  /* remove extra top spacing */
  }

  .notif-btn {
    flex: 1;                  /* buttons stretch evenly */
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* Notification message container design */
.notif-item {
    background: #fffbe6;
    border: 1px solid #ffe08a;
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 18px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    min-height: 70px;
}

.notif-item.unread {
    background: #fff3cd;
    border-color: #ffd966;
}

.notif-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.notif-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
    vertical-align: middle;
}

.notif-dot.green {
    background: #7ed957;
}

.notif-dot.gray {
    background: #bdbdbd;
}

.notif-message {
    font-size: 1.08rem;
    color: #6c4f00;
    font-weight: 500;
    word-break: break-word;
}

.notif-meta {
    font-size: 0.92rem;
    color: #b59f6c;
    margin-left: 24px;
    min-width: 160px;
    text-align: right;
}

.mark-read-btn {
    margin-left: 18px;
    margin-top: 0;
}

#notificationList {
    max-height: 580px;
    overflow-y: auto;
    padding: 8px;
}

/* Responsive notification design for mobile */
@media (max-width: 600px) {
    .notif-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 10px;
        min-height: unset;
    }
    .notif-left {
        gap: 8px;
        margin-bottom: 8px;
        width: 100%;
    }
    .notif-message {
        font-size: 1rem;
        word-break: break-word;
        width: 100%;
    }
    .notif-meta {
        font-size: 0.9rem;
        margin-left: 0;
        margin-bottom: 8px;
        text-align: left;
        min-width: unset;
        width: 100%;
    }
    .mark-read-btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
}