.loader_container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.cps_loader {
  width: 160px;
  height: 160px;
}

.cps_loader img {
  width: 100%;
  position: absolute;
}

img.directions {
  z-index: 3;
  width: 160px;
}

img.arrows {
  animation: arrows linear 20s infinite;
  z-index: 5;
  width: 160px;
}

#idle-warning {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.idle-modal {
  background: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  min-width: 380px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.icon-container {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.icon-container svg {
  width: 32px;
  height: 32px;
  color: white;
}

.idle-modal h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.idle-modal p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

#idle-count {
  display: inline-block;
  min-width: 30px;
  font-size: 28px;
  font-weight: 700;
  color: #667eea;
  transition: transform 0.2s ease;
}

#idle-count.tick {
  animation: tickAnimation 0.3s ease;
}

@keyframes tickAnimation {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.countdown-text {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

.idle-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.idle-actions button {
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.idle-actions button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.idle-actions button:hover::before {
  width: 300px;
  height: 300px;
}

#continue-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#continue-btn:active {
  transform: translateY(0);
}

#logout-btn {
  background: #fff;
  color: #f44336;
  border: 2px solid #f44336;
}

#logout-btn:hover {
  background: #f44336;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

#logout-btn:active {
  transform: translateY(0);
}

/* Progress ring */
.progress-ring {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s linear;
}

@keyframes arrows {
  0% {
    transform: rotate(85deg);
  }

  50% {
    transform: rotate(-185deg);
  }

  70% {
    transform: rotate(-65deg);
  }

  100% {
    transform: rotate(85deg);
  }
}

img.numbers {
  animation: numbers linear 25s infinite;
  z-index: 2;
  width: 160px;
}

@keyframes numbers {
  0% {
    transform: rotate(-45deg);
  }

  50% {
    transform: rotate(105deg);
  }

  70% {
    transform: rotate(65deg);
  }

  100% {
    transform: rotate(-45deg);
  }
}
