/* Custom CSS untuk SPMB Iqra School */
@import "tailwindcss";
/* Animasi hover untuk card */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ABE7B2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #CBF3BB;
}

/* Animasi loading */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ABE7B2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Animasi fade in */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(to right, #ABE7B2, #CBF3BB);
  color: #1F2937;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(171, 231, 178, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(171, 231, 178, 0.4);
  background: linear-gradient(to right, #CBF3BB, #ABE7B2);
  color: #111827;
}

.btn-secondary {
  background: white;
  color: #1F2937;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ABE7B2;
  cursor: pointer;
}

.btn-secondary:hover {
  background: linear-gradient(to right, #ABE7B2, #CBF3BB);
  color: #1F2937;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }

  .mobile-full {
    width: 100%;
  }
  
  /* Mobile specific improvements for register page */
  .registration-type,
  .kelas-option {
    margin-bottom: 12px;
  }
  
  .registration-type:last-child,
  .kelas-option:last-child {
    margin-bottom: 0;
  }
  
  /* Better touch targets on mobile */
  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
  }
  
  /* Form inputs mobile optimization */
  .form-input {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }
  
  /* Better spacing for mobile cards */
  .info-card {
    margin-bottom: 16px;
  }
}

/* Information cards equal height and alignment */
.info-section-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

.info-card-item {
  flex: 1 1 100%;
  max-width: 100%;
  min-height: 240px;
}

/* Responsive flexbox layout */
@media (min-width: 640px) {
  .info-section-grid {
    gap: 1.5rem;
  }
  
  .info-card-item {
    min-height: 280px;
    flex: 1 1 calc(50% - 0.75rem);
    max-width: 320px;
  }
  
  /* For 3-column layouts */
  .info-section-grid.lg\\:grid-cols-3 .info-card-item {
    flex: 1 1 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .info-section-grid {
    gap: 2rem;
  }
  
  .info-card-item {
    min-height: 320px;
    max-width: 350px;
  }
  
  /* For 3-column layouts on desktop */
  .info-section-grid.lg\\:grid-cols-3 .info-card-item {
    flex: 1 1 calc(33.333% - 1.333rem);
    max-width: 320px;
  }
  
  /* For 2-column layouts on desktop */
  .info-section-grid.sm\\:grid-cols-2:not(.lg\\:grid-cols-3) .info-card-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: 400px;
  }
}

/* Custom card styles */
.info-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ABE7B2;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-open {
  background: linear-gradient(to right, #ABE7B2, #CBF3BB);
  color: #1F2937;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(171, 231, 178, 0.2);
}

.status-closed {
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #ABE7B2, #CBF3BB);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideInRight 0.3s ease;
}

.notification.success {
  background: linear-gradient(to right, #ABE7B2, #CBF3BB);
  color: #1F2937;
  box-shadow: 0 4px 6px rgba(171, 231, 178, 0.3);
}

.notification.error {
  background: #ef4444;
}

.notification.warning {
  background: linear-gradient(to right, #93BFC7, #7AA8B0);
  color: #1F2937;
  box-shadow: 0 4px 6px rgba(147, 191, 199, 0.3);
}

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

/* School selection highlight */
.school-selected {
  background: #ECF4E8;
  border-color: #ABE7B2;
  color: #1F2937;
  box-shadow: 0 4px 6px rgba(171, 231, 178, 0.2);
}

/* Mobile menu improvements */
.mobile-menu {
  transition: all 0.3s ease;
}

.mobile-menu.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #ABE7B2;
  box-shadow: 0 0 0 3px rgba(171, 231, 178, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.data-table th {
  background: #f9fafb;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
}

.data-table tr:hover {
  background: #f9fafb;
}
