/* Custom CSS for Home Page */
.hero-overlay {
  background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 119, 190, 0.5));
}

.section-padding {
  padding: 3rem 0;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[x-cloak] {
  display: none !important;
}

/* Keep accessibility toolbar and panel styles constant */
#accessibility-toolbar,
#accessibility-toolbar *,
#accessibility-panel,
#accessibility-panel * {
  filter: none !important;
  transform: none !important;
  zoom: normal !important;
}

/* Glassy effect for Tugas Akhir megamenu */
.megamenu-tugas-akhir {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animated underline hover effect for megamenu links */
.megamenu-link {
  position: relative;
  display: block;
}

.megamenu-link span {
  display: inline-block;
  position: relative;
}

.megamenu-link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #004d40;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.megamenu-link:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.megamenu-link:hover span {
  color: #004d40;
}
/* Custom styles for Login Page */
.hero-gradient {
  background: linear-gradient(130deg, #0f2a43 0%, #064e3b 100%);
}
.news-card-hover:hover {
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-code {
  background: repeating-linear-gradient(45deg, #f8fafc, #f1f5f9 10px);
  letter-spacing: 0.25em;
}

/* Styling untuk pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-link {
  display: block;
  border-radius: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.page-item {
  display: flex;
}

.page-item.active .page-link {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(26 54 93 / var(--tw-bg-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(26 54 93 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.page-item.disabled .page-link {
  cursor: not-allowed;
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.page-item:not(.active):not(.disabled) .page-link {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(26 54 93 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(26 54 93 / var(--tw-text-opacity, 1));
}

.page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: rgb(26 54 93 / 0.1);
}

.page-link:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: rgb(11 61 145 / 0.3);
}

/* Animation Classes */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Component Animations */
.animate-floating {
  animation: floating 3s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom Focus Styles */
.focus-ring-custom:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .lg\:w-3\/5 {
    width: 55%;
  }
  .lg\:w-2\/5 {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .mobile-hero {
    background: linear-gradient(135deg, #2ecc71 0%, #2c3e50 100%);
  }

  .mobile-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 640px) {
  .px-mobile {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .py-mobile {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Print Styles */
@media print {
  body {
    background: white !important;
  }

  .hidden-print {
    display: none !important;
  }

  .print-visible {
    display: block !important;
  }
}

/* Accessibility Improvements */
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .contrast-border {
    border: 2px solid currentColor;
  }

  .contrast-bg {
    background: black;
    color: white;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print-friendly styles */
.print-friendly {
  background: white;
  color: black;
  box-shadow: none;
}

/* Custom scrollbar for WebKit browsers */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #2ecc71;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #27ae60;
}

/* Utility classes for the login page */
.bg-agriculture-field {
  background-image: url("https://images.unsplash.com/photo-1478131143081-80f7f84ca84d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.bg-campus-building {
  background-image: url("https://images.unsplash.com/photo-1560184897-7c2eb48d1844?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.bg-lab-research {
  background-image: url("https://images.unsplash.com/photo-1581089333277-bff14c2f6160?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.bg-plant-greenhouse {
  background-image: url("https://images.unsplash.com/photo-1564769690614-081c8d52f832?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.bg-harvest-crop {
  background-image: url("https://images.unsplash.com/photo-1616936221396-c5e52353f663?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0.13;
}

.login-gradient {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.hero-pattern {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBmaWxsPSIjMjVjYzYxIiBmaWxsLW9wYWNpdHk9IjAuMDIiIC8+CjxwYXRoIGQ9Ik0wIDYwbDYwIDYwTDYwIDAsTCAwIDAsIFogTTEgNUwyIDU2TDMgMzdMNCA1NFQ1IDM5TDYgNTJMNyAzNFQ4IDQ5TDkgMzFQMTAgNDZQIDExIDI5VDEyIDQzVDEzIDI2VDE0IDQwVDE1IDIzVDE2IDM3VDE3IDIwVDE4IDM0VDE5IDE3VDE5IDMxVDE4IDE4VDE3IDIxVDE2IDE4VDE1IDIxVDE0IDE4VDEzIDIxVDEyIDE4VDEwIDE4VDggMTggTDYgMTggTDQgMTggTDIgMTggTCAwIDE4IFoiIGZpbGw9IiMyNWNjNjEiIGZpbGwtb3BhY2l0eT0iMC4wNCIgLz4KPC9zdmc+");
}

/* Custom button hover effects */
.btn-hover-scale:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
}

.btn-hover-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s;
}

.btn-hover-slide:hover::before {
  left: 100%;
}

/* Form field custom styles */
.form-input-modern {
  border: 1px solid rgba(44, 62, 80, 0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.9);
}

.form-input-modern:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
  background: white;
}

/* Notification styles */
.notification-success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
}

.notification-error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
}

.notification-warning {
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
}

/* Loading spinner custom */
.spinner-custom {
  border-top-color: #2ecc71;
  border-right-color: #2ecc71;
  border-bottom-color: #2ecc71;
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shadow variations */
.shadow-primary {
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.15);
}

.shadow-secondary {
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.15);
}

.shadow-accent {
  box-shadow: 0 10px 25px rgba(241, 196, 15, 0.15);
}

ul:not(.list-none),
ol:not(.list-none) {
  list-style-type: circle;
  margin-left: 15px;
}

dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol,
ul {
  padding-left: 2rem;
}

ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
  unicode-bidi: isolate;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}
