.carryon-button {
font-size: 1.25rem;
background: none;
border: none;
padding: 0;
cursor: pointer;
outline: none;
transition: filter 0.3s ease;
}

.inactive {
filter: grayscale(100%);
}

.active {
filter: none;
}

.packed-category {
  display: block;
}

.packed-item {
  display: block;
}

.category.hide-packed > ul > .packed-item {
  display: none;
}

.category.hide-packed:not(:has(> ul > .item:not(.packed-item))) {
  display: none;
}

.progress-bar {
  margin: 20px 0;
}

.progress {
  background-color: #f0f0f0;
  border-radius: 5px;
  height: 20px;
  width: 100%;
}

.progress-fill {
  background-color: #4CAF50;
  border-radius: 5px;
  height: 100%;
  transition: width 0.5s ease-in-out;
}

.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.flash-message {
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.flash-message.show {
    opacity: 1;
    transform: translateY(0);
}

.flash-message.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
}

.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.close-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}
#scrollToTopBtn:hover {
  opacity: 1;
}

body.dark-mode {
  background-color: #181a1b;
  color: #f3f3f3;
}

body.dark-mode a {
  color: #8ab4f8;
}

body.dark-mode .flash-message {
  background-color: #23272a;
  color: #e3e3e3;
}

body.dark-mode .flash-message.error {
  background-color: #8b0000;
  color: #fff;
}

body.dark-mode .flash-message.success {
  background-color: #225522;
  color: #d4edda;
}

body.dark-mode .flash-message.info {
  background-color: #123456;
  color: #d1ecf1;
}

@media print {
  nav, #scrollToTopBtn, .btn, .flash-container, footer {
    display: none !important;
  }
  main {
    margin: 0;
    width: 100%;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  .noprint {
    display: none !important;
  }
}
