/* Maintenance Mode Notification Styles */

/* Maintenance Button - styled like other header buttons */
.maintenance-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  font-size: 1.25rem;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  animation: maintenance-button-pulse 2s ease-in-out infinite;
}

.maintenance-button:hover {
  background-color: #fef3c7;
  border-color: #fbbf24;
  box-shadow: 0 1px 3px 0 rgba(251, 191, 36, 0.3), 0 1px 2px -1px rgba(251, 191, 36, 0.2);
  transform: scale(1.05);
}

.maintenance-button:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Pulse animation to draw attention */
@keyframes maintenance-button-pulse {
  0%, 100% {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
}

/* Overlay for the maintenance message */
.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding: 20px;
}

.maintenance-overlay.maintenance-visible {
  opacity: 1;
}

.maintenance-overlay.maintenance-hidden {
  opacity: 0;
  pointer-events: none;
}

.maintenance-message {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  direction: rtl;
  animation: maintenance-slide-in 0.4s ease-out;
}

@keyframes maintenance-slide-in {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.maintenance-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: maintenance-rotate 3s ease-in-out infinite;
}

@keyframes maintenance-rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.maintenance-text {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.maintenance-text strong {
  color: #f59e0b;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.maintenance-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #6b7280;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.maintenance-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #111827;
  transform: scale(1.1);
}

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

/* Responsive design */
@media (max-width: 640px) {
  .maintenance-message {
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  .maintenance-icon {
    font-size: 48px;
    margin-bottom: 15px;
  }
  
  .maintenance-text {
    font-size: 14px;
  }
  
  .maintenance-text strong {
    font-size: 16px;
  }
  
  .maintenance-close {
    top: 10px;
    left: 10px;
    font-size: 28px;
    width: 32px;
    height: 32px;
  }
}

/* Accessibility */
.maintenance-overlay:focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
}

