/* Oumica Custom Styles */

/* Glass Card Effect */
.glass-card {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  border-width: 1px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dark .glass-card {
  background-color: rgba(31, 41, 55, 0.6);
  border-color: rgba(55, 65, 81, 0.3);
}

/* Primary Button */
.btn-primary {
  background-image: linear-gradient(to right, #2563eb, #9333ea);
  border-radius: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: scale(1.05);
  background-image: linear-gradient(to right, #1d4ed8, #7e22ce);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

/* Hero Query Button */
.btn-hero-query {
  background-image: linear-gradient(to right, #2563eb, #9333ea, #2563eb);
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 700;
  padding: 1.25rem 2.5rem;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: hero-btn-gradient 3s ease-in-out infinite;
  background-size: 200% 100%;
  font-size: 1.25rem;
}

.btn-hero-query:hover {
  transform: scale(1.1);
  background-image: linear-gradient(to right, #1d4ed8, #7e22ce, #1d4ed8);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

@keyframes hero-btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Pulse Ring */
.hero-query-pulse {
  animation: hero-pulse-ring 2s ease-out infinite;
  border-radius: 1rem;
  position: absolute;
  inset: 0;
}

@keyframes hero-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Secondary Button */
.btn-secondary {
  border-radius: 1rem;
  border-width: 1px;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: #e5e7eb;
  font-weight: 600;
  padding: 0.75rem 2rem;
  color: #111827;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  transform: scale(1.05);
  background-color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .btn-secondary {
  background-color: rgba(31, 41, 55, 0.8);
  border-color: #4b5563;
  color: white;
}

.dark .btn-secondary:hover {
  background-color: #374151;
}

/* Sidebar Navigation */
.sidebar-nav-link {
  display: flex;
  align-items: center;
  border-radius: 1rem;
  font-weight: 500;
  padding: 1rem;
  color: #374151;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

.dark .sidebar-nav-link {
  color: #d1d5db;
}

.dark .sidebar-nav-link:hover {
  background-color: rgba(30, 58, 138, 0.2);
  color: #60a5fa;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  animation: float 6s ease-in-out infinite;
  border-radius: 9999px;
  opacity: 0.2;
  position: absolute;
}

.shape-1 {
  animation-delay: 0s;
  background-color: rgba(96, 165, 250, 1);
  height: 8rem;
  left: 2.5rem;
  top: 5rem;
  width: 8rem;
}

.shape-2 {
  animation-delay: 1s;
  background-color: rgba(192, 132, 252, 1);
  height: 6rem;
  right: 5rem;
  top: 10rem;
  width: 6rem;
}

.shape-3 {
  animation-delay: 2s;
  background-color: rgba(244, 114, 182, 1);
  bottom: 5rem;
  height: 10rem;
  left: 5rem;
  width: 10rem;
}

.shape-4 {
  animation-delay: 3s;
  background-color: rgba(250, 204, 21, 1);
  bottom: 10rem;
  height: 5rem;
  right: 10rem;
  width: 5rem;
}

.shape-5 {
  animation-delay: 4s;
  background-color: rgba(74, 222, 128, 1);
  height: 7rem;
  left: 50%;
  top: 50%;
  width: 7rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Transport Effects */
.transport-effects-right {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}

.plane {
  position: absolute;
  color: rgba(59, 130, 246, 1);
  font-size: 1.8rem;
  opacity: 0.5;
  animation: flyAcrossRight 12s linear infinite;
}

.plane-1 { color: #2563eb; font-size: 2.2rem; animation-delay: 0s; top: 15%; }
.plane-2 { color: #60a5fa; font-size: 1.6rem; opacity: 0.4; animation-delay: 4s; top: 30%; }
.plane-3 { color: #6366f1; font-size: 1.9rem; opacity: 0.6; animation-delay: 8s; top: 45%; animation-name: flyAcrossLeft; left: auto; right: -80px; transform: scaleX(-1); }
.plane-4 { color: #0ea5e9; font-size: 1.4rem; opacity: 0.3; animation-delay: 2s; top: 60%; }
.plane-5 { color: #1d4ed8; font-size: 2.4rem; opacity: 0.45; animation-delay: 10s; top: 75%; animation-name: flyAcrossLeft; left: auto; right: -80px; transform: scaleX(-1); }

.ship {
  position: absolute;
  color: #2563eb;
  font-size: 2rem;
  opacity: 0.4;
  animation: sailFromDistance 22s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.3));
  will-change: transform, opacity;
}

.ship-1 { animation-delay: 3s; right: 15%; }
.ship-2 { animation-delay: 13s; right: 38%; }

@keyframes flyAcrossRight {
  0% { left: -80px; transform: translateY(0) rotate(0) scale(0.8); }
  25% { transform: translateY(-15px) rotate(3deg) scale(0.9); }
  50% { transform: translateY(8px) rotate(-2deg) scale(1); }
  75% { transform: translateY(-10px) rotate(1deg) scale(1.1); }
  100% { left: calc(100% + 80px); transform: translateY(0) rotate(0) scale(1.2); }
}

@keyframes flyAcrossLeft {
  0% { right: -80px; transform: translateY(0) rotate(0) scale(0.8) scaleX(-1); }
  25% { transform: translateY(-20px) rotate(-2deg) scale(0.9) scaleX(-1); }
  50% { transform: translateY(10px) rotate(3deg) scale(1) scaleX(-1); }
  75% { transform: translateY(-15px) rotate(-1deg) scale(1.1) scaleX(-1); }
  100% { right: calc(100% + 80px); transform: translateY(0) rotate(0) scale(1.2) scaleX(-1); }
}

@keyframes sailFromDistance {
  0% {
    opacity: 0;
    top: 95%;
    transform: translateX(30px) scale(0.15) rotate(-8deg);
  }
  8% {
    opacity: 0.2;
    top: 88%;
    transform: translateX(10px) scale(0.25) rotate(-5deg);
  }
  20% {
    opacity: 0.45;
    top: 72%;
    transform: translateX(-25px) scale(0.42) rotate(3deg);
  }
  35% {
    opacity: 0.55;
    top: 58%;
    transform: translateX(20px) scale(0.58) rotate(-2deg);
  }
  50% {
    opacity: 0.6;
    top: 48%;
    transform: translateX(-15px) scale(0.72) rotate(2deg);
  }
  65% {
    opacity: 0.55;
    top: 38%;
    transform: translateX(25px) scale(0.85) rotate(-3deg);
  }
  80% {
    opacity: 0.35;
    top: 25%;
    transform: translateX(-20px) scale(0.95) rotate(1deg);
  }
  92% {
    opacity: 0.15;
    top: 15%;
    transform: translateX(10px) scale(1.05) rotate(-1deg);
  }
  100% {
    opacity: 0;
    top: 8%;
    transform: translateX(0) scale(1.1) rotate(0deg);
  }
}

/* Floating Cards - Inline Version */
.floating-card-inline {
  animation: cardFloatInline 3s ease-in-out infinite;
}

.floating-card-inline:nth-child(2) {
  animation-delay: 1s;
}

.floating-card-inline:nth-child(4) {
  animation-delay: 2s;
}

@keyframes cardFloatInline {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Cool Title Effect */
.cool-title-effect {
  animation: titlePulse 3s ease-in-out infinite, titleGlow 4s ease-in-out infinite;
}

.cool-title-effect:hover {
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.5) !important;
  transform: scale(1.05) !important;
}

@keyframes titlePulse {
  0%, 100% { box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 0 10px 10px -5px rgba(59, 130, 246, 0.1); transform: scale(1); }
  50% { box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4), 0 25px 25px -5px rgba(147, 51, 234, 0.2); transform: scale(1.02); }
}

@keyframes titleGlow {
  0%, 100% { background: linear-gradient(90deg, #2563eb, #9333ea); }
  25% { background: linear-gradient(90deg, #1d4ed8, #7c3aed, #ec4899); }
  50% { background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b); }
  75% { background: linear-gradient(90deg, #2563eb, #a855f7, #ef4444); }
}

/* Animate Shine */
.animate-shine {
  animation: animate-shine 2s ease-in-out infinite;
}

@keyframes animate-shine {
  0% { transform: translate(-100%) skew(-12deg); }
  100% { transform: translate(200%) skew(-12deg); }
}

/* Animate Bounce X */
.animate-bounce-x {
  animation: bounce-x 1.5s ease-in-out infinite;
}

@keyframes bounce-x {
  0%, 100% { transform: translate(0); }
  50% { transform: translate(6px); }
}

/* Login Form Styles */
#login-form input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#login-form input::placeholder {
  color: #9ca3af;
}

.dark #login-form input::placeholder {
  color: #6b7280;
}

/* Official section equal height */
#official .grid {
  align-items: stretch;
}

#official .lg\:col-span-2,
#official .lg\:col-span-2 > .grid {
  height: 100%;
}

/* Logo image styles - contain for full view */
.logo-container {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.5rem;
}

.dark .logo-container {
  background: #374151;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Customs logo smaller */
.customs-logo-container {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.375rem;
}

.dark .customs-logo-container {
  background: #374151;
}

.customs-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Visit/Query button styles */
.btn-visit {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.btn-visit:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.btn-query {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.btn-query:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* GBL Logo styles */
.gbl-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.gbl-logo:hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transform: scale(1.05);
}

.dark .gbl-logo {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.dark .gbl-logo:hover {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

/* Footer logo */
.footer-logo {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.dark .footer-logo {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-card {
    animation: none;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-bottom: 1rem;
  }

  .transport-effects-right {
    display: none;
  }

  .floating-shapes {
    opacity: 0.5;
  }
}
