.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 100;
}

.header-items {
  position: relative;
  background: url("../img/FIL_BG.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 40px;
  width: 100%;
  height: 90px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.action-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #0A2540;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.header-action-btn {
  position: relative;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 37, 64, 0.2);
  box-shadow: 0 0 4px rgba(10, 37, 64, 0.12);
}

.action-btn i {
  font-size: 14px;
  color: #64748B;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.header-items::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45px;
  background: linear-gradient(
    to bottom,
    rgba(240, 248, 255, 0) 0%,
    rgba(240, 248, 255, 0.4) 40%,
    rgba(240, 248, 255, 0.6) 60%,
    rgba(240, 248, 255, 0.8) 80%,
    rgb(240, 248, 255) 100%
  );
  pointer-events: none;
}

.logo {
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.fil-logo-text {
  color: #0A2540;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
}

.fil-logo {
  height: 65px;
}

.dokume-logo {
  height: 28px;
  filter: drop-shadow(0 1px 4px rgba(10, 37, 64, 0.08));
  transition: filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.schleinitz-ai-logo {
  height: 28px;
  filter: drop-shadow(0 1px 4px rgba(10, 37, 64, 0.08));
  transition: filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.olympics-logo {
  height: 80px;
}

.result-container {
  background: #F0F8FF;
  margin-top: 90px;
  height: calc(100vh - 90px);
  padding: 15px 15px;
}
@media (max-width: 768px) {
  .result-container {
    height: calc(100vh - 210px);
    margin-bottom: 120px;
  }
}

.result-content-wrapper {
  position: relative;
  height: 100%;
  border-radius: 12px;
  padding: 0 10px 10px 10px ;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.result-content-wrapper::before {
  content: "";
  position: sticky;
  top: -10px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(240, 248, 255, 1) 0%,
    rgba(240, 248, 255, 0.9) 20%,
    rgba(240, 248, 255, 0.5) 60%,
    rgba(240, 248, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 10;
  display: none;
}

.result-content-wrapper:has(.response-tabs-wrapper[style*="display: none"])::before,
.result-content-wrapper:not(:has(.response-tabs-wrapper))::before {
  display: block;
}

.result-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.result-content-wrapper::-webkit-scrollbar-thumb {
  background-color: #64748B;
  border-radius: 3px;
}

.tool-result-container {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 20px;
}

.tool-result-container.visible {
  display: block;
}


.tool-result-block{
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(10, 37, 64, 0.05);
  border-radius: 12px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.tool-result-block.block-entering {
  animation: fadeIn 0.3s ease-in forwards;
}

.footer-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 24px 0 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.footer-logo-link:hover {
  background: rgba(10, 37, 64, 0.06);
  transform: translateY(-2px);
}

.footer-logo-link:hover .logo {
  filter: drop-shadow(0 4px 12px rgba(10, 37, 64, 0.15));
}

.footer-separator {
  font-size: 14px;
  color: rgba(10, 37, 64, 0.25);
  font-weight: 300;
}

.footer-legal {
  display: flex;
  gap: 16px;
  margin-top: -4px;
}

.footer-legal-link {
  font-size: 11px;
  color: rgba(10, 37, 64, 0.45);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.footer-legal-link:hover {
  color: rgba(10, 37, 64, 0.7);
}

@media (max-width: 600px) {
  .fil-logo-text {
    font-size: 0.8rem !important;
  }

  .fil-logo {
    height: 55px;
  }

  .header-items {
    padding: 8px 20px;
  }

  .header-action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .header-action-btn span {
    display: none;
  }

  .header-action-btn i {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .result-container {
    padding: 0;
  }
}

.game-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.game-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  font-size: 20px;
}

.game-close-btn:hover {
  transform: scale(1.1);
}

.game-close-btn:active {
  transform: scale(0.95);
}

.game-container {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  flex: 1;
}

@media (max-width: 768px) {
  .header-action-btn span {
    display: none;
  }

  .game-close-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.tutorial-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tutorial-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  background: #0A2540;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: tutorialModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tutorialModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tutorial-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  font-size: 16px;
}

.tutorial-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.tutorial-close-btn:active {
  transform: scale(0.95);
}

.tutorial-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tutorial-video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .tutorial-modal-content {
    width: 95%;
    max-width: none;
    border-radius: 12px;
  }

  .tutorial-close-btn {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tutorial-modal-content {
    width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .tutorial-video-wrapper {
    aspect-ratio: auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tutorial-video-wrapper video {
    max-height: 100%;
  }
}