


body {
  padding-top: env(titlebar-area-height, 500px);
}

#custom-title-bar-atgpwamenustyle {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  position: fixed;
  top: 0;
  left: env(titlebar-area-x, 0);
  height: 50px; /* fallback */
  height: env(titlebar-area-height, 50px);
  width: env(titlebar-area-width, 100%);
  -webkit-app-region: drag;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 12px 12px;
  font-family: 'Segoe UI', sans-serif;
}



.title-left-atgpwamenustyle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo-atgpwamenustyle {
  height: 28px;
  border-radius: 4px;
}

.app-name-atgpwamenustyle {
  font-weight: bold;
  font-size: 16px;
  color: #222;
}

.mac-buttons-atgpwamenustyle {
  display: flex;
  gap: 6px;
  margin-left: 16px;
}

.mac-btn-atgpwamenustyle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.red-atgpwamenustyle { background: #ff5f56; }
.yellow-atgpwamenustyle { background: #ffbd2e; }
.green-atgpwamenustyle { background: #27c93f; }

.title-right-atgpwamenustyle {
  display: flex;
  gap: 6px;
}
.win-btn-atgpwamenustyle {
  background: #eee;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.win-btn-atgpwamenustyle:hover {
  background: #ddd;
}

.menu-bar-atgpwamenustyle {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}
.menu-bar-atgpwamenustyle span a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.menu-bar-atgpwamenustyle span a:hover {
  color: #e53935;
}

.menu-toggle-atgpwamenustyle {
  display: none;
  font-size: 48px;
  cursor: pointer;
  user-select: none;
}

.floating-close-atgpwamenustyle {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  background: #ff5252;
  color: #fff;
  border-radius: 50%;
  padding: 10px 14px;
  font-size: 18px;
  z-index: 9999;
  cursor: pointer;
}

.menu-close-modal-atgpwamenustyle {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.menu-close-modal-atgpwamenustyle .modal-content-atgpwamenustyle {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 350px;
}
.modal-buttons-atgpwamenustyle {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.modal-buttons-atgpwamenustyle button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #1976d2;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.modal-buttons-atgpwamenustyle button:hover {
  background: #0d47a1;
}

@media (max-width: 992px) {
  .menu-bar-atgpwamenustyle {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 9998;
  }
  .menu-bar-atgpwamenustyle.show-atgpwamenustyle {
    display: flex;
  }
  .menu-toggle-atgpwamenustyle {
    display: block;
  }
  .title-right-atgpwamenustyle {
    display: none;
  }
  .floating-close-atgpwamenustyle {
    display: block;
  }
}





/* Slide Animation for Mobile Menu */
.menu-bar-atgpwamenustyle {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
  max-height: 0;
}

.menu-bar-atgpwamenustyle.show-atgpwamenustyle {
  max-height: 500px;
}

/* Beautiful Floating Close Button */
.full-close-atgpwamenustyle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  background: linear-gradient(135deg, #ff1744, #d50000);
  color: white;
  width: 30px;
  height: 30px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10001;
  animation: pulse-float 1.5s infinite;
}

@keyframes pulse-float {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.1); }
  100% { transform: translateY(-50%) scale(1); }
}

/* Responsive Position for Small Screens */
@media (max-width: 768px) {
  .full-close-atgpwamenustyle {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}






/* Toast Notification - Install Success */
.pwa-toast-success {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeInToast 0.3s ease-in-out;
}

.pwa-toast-success.show {
  display: block;
}

@keyframes fadeInToast {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}















#pwa-install-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  background: #ffffff;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 16px 16px 60px 16px;
  z-index: 10000;
  font-family: 'Segoe UI', sans-serif;
  animation: slideDown 0.3s ease-in-out;
  display: none;
  box-sizing: border-box;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

#pwa-banner-content .img-sektall-pwa {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

#pwa-banner-content .h3-sektall-pwa {
  margin: 0;
  font-size: 18px;
}

#pwa-banner-content .p-sektall-pwa {
  margin: 0;
  font-size: 14px;
  color: #444;
}

#close-banner {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 20px;
  font-weight: bold;
  color: #ff0000;
  background: none;
  border: none;
  cursor: pointer;
}

#install-btn-sektall-pwa {
  position: absolute;
  bottom: -40px;
  right: 16px;
  background: #ff0000;
  color: white;
  font-weight: bold;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#install-btn-sektall-pwa:hover {
  background: #E4080A;
}

/* Toast Notification */
#pwa-update-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  font-size: 14px;
  display: none;
  animation: fadeInUp 0.3s ease-in-out;
}

/*#pwa-update-toast.show {*/
/*  display: block;*/
/*}*/


#pwa-update-toast.show {
  display: block !important;
}

#pwa-update-toast button {
  background: #ff0000;
  border: none;
  color: white;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}




.pwa-changelog-modal {
  position: fixed;
  top: 20vh;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10000;
  max-width: 360px;
  font-family: 'Segoe UI', sans-serif;
}

.pwa-changelog-entries {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.version-block {
  margin-bottom: 12px;
}

.version-block strong {
  font-size: 15px;
  color: #111;
}

.version-block p {
  font-size: 13px;
  color: #444;
  margin: 4px 0 0;
}

.pwa-changelog-modal button {
  margin-top: 10px;
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 5px;
  cursor: pointer;
}



#title-bar {
  position: fixed;
  left: env(titlebar-area-x, 0);
  top: env(titlebar-area-y, 0);
  height: env(titlebar-area-height, 50px);
  width: env(titlebar-area-width, 100%);
}