/* Custom Navigation Arrows untuk Banner Slider */
/* Styling untuk tombol prev/next yang custom */

.custom-prev,
.custom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(41, 56, 129, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.custom-prev:hover,
.custom-next:hover {
  background: rgba(41, 56, 129, 1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.custom-prev:active,
.custom-next:active {
  transform: translateY(-50%) scale(0.95);
}

.custom-prev {
  left: 20px;
}

.custom-next {
  right: 20px;
}

/* Icon styling */
.custom-prev i,
.custom-next i {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.custom-prev:hover i {
  transform: translateX(-2px);
}

.custom-next:hover i {
  transform: translateX(2px);
}

/* Focus states untuk accessibility */
.custom-prev:focus,
.custom-next:focus {
  outline: none;
  border-color: #EAB630;
  box-shadow: 0 0 0 3px rgba(234, 182, 48, 0.3);
}

/* Disabled state */
.custom-prev:disabled,
.custom-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .custom-prev,
  .custom-next {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .custom-prev {
    left: 10px;
  }
  
  .custom-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .custom-prev,
  .custom-next {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .custom-prev {
    left: 5px;
  }
  
  .custom-next {
    right: 5px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .custom-prev,
  .custom-next {
    background: rgba(0, 0, 0, 0.9);
    border-color: white;
  }
  
  .custom-prev:hover,
  .custom-next:hover {
    background: black;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .custom-prev,
  .custom-next {
    transition: none;
  }
  
  .custom-prev:hover,
  .custom-next:hover {
    transform: translateY(-50%);
  }
  
  .custom-prev:hover i,
  .custom-next:hover i {
    transform: none;
  }
}

/* Print styles */
@media print {
  .custom-prev,
  .custom-next {
    display: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .custom-prev,
  .custom-next {
    background: rgba(41, 56, 129, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .custom-prev:hover,
  .custom-next:hover {
    background: rgba(41, 56, 129, 1);
    border-color: rgba(255, 255, 255, 0.6);
  }
}

/* Animation untuk entrance */
.custom-prev,
.custom-next {
  animation: slideInArrows 0.6s ease-out;
}

@keyframes slideInArrows {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.custom-next {
  animation-delay: 0.1s;
}

/* Hover effect untuk mobile touch */
@media (hover: none) and (pointer: coarse) {
  .custom-prev:active,
  .custom-next:active {
    background: rgba(41, 56, 129, 1);
    transform: translateY(-50%) scale(0.9);
  }
}

/* Loading state */
.custom-prev.loading,
.custom-next.loading {
  pointer-events: none;
  opacity: 0.7;
}

.custom-prev.loading::after,
.custom-next.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
