/* MO-BANK Custom Styles */

/* Import unified color system */
@import url("./colors.34cb276c480a.css");

/* Mobile-first responsive utilities */
.touch-manipulation {
  touch-action: manipulation;
}

/* Improved tap targets for mobile */
@media (max-width: 640px) {
  .touch-manipulation {
    min-height: 8px !important;
    min-width: 8px !important;
  }
}

/* Text utilities with responsive considerations */
.text-truncate-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.text-truncate-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Mobile-friendly line clamp */
@media (max-width: 640px) {
  .text-truncate-2 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
}

/* .carousel-item {
  display: none;
  position: relative;
}

.carousel-item:first-child {
  display: block;
} */

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-indicators {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* HTMX Loading Indicators */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

.htmx-request.htmx-indicator {
  display: inline;
}

/* Loading spinner animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Text utilities */
.text-truncate-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.text-truncate-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Form enhancements with mobile considerations */
.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-error {
  border-color: var(--error-500) !important;
  background-color: var(--error-50);
}

/* Mobile-friendly form inputs */
@media (max-width: 640px) {
  .form-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
  /* Ensure mobile menu is properly sized */
  .mobile-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  
  /* Improve mobile menu item spacing */
  .mobile-menu a,
  .mobile-menu button {
    padding: 0.875rem 1rem;
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* Responsive image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive tables */
@media (max-width: 640px) {
  .responsive-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Hide password reveal button (Edge, Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-input-password-reveal-button {
  display: none !important;
}

input[type="password"]::-webkit-input-password-reveal {
  display: none !important;
}