/* Custom animations and styles */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

/* Sidebar active state */
.sidebar-item.active {
  background-color: rgba(99, 102, 241, 0.1);
  color: rgb(99, 102, 241);
  font-weight: 600;
}

/* Mobile navigation active state */
.mobile-nav-item.active {
  color: rgb(99, 102, 241);
  border-top: 3px solid rgb(99, 102, 241);
}

/* Test question styles */
.question-container {
  transition: all 0.3s ease;
}

.question-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #015196, #0070c0);
  transition: width 0.5s ease;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

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

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

@keyframes slide-up {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Test timer styles */
.timer {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ef4444;
}

/* Loading spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #6366f1;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
  }

  .mobile-nav-item {
    flex: 1;
  }
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: white;
  border: 1px solid #e5e7eb;
}

.pagination button.active {
  background-color: #6366f1;
  color: white;
}

/* Search and filter styles */
.search-container {
  position: relative;
}

.search-container input {
  padding-left: 40px;
}

.search-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* Payment status styles */
.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-paid {
  background-color: #d1fae5;
  color: #065f46;
}

.status-overdue {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Custom Scrollbar for Navigation Grid */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Question Option Selection Animation */
.question-option {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-option.selected {
  transform: scale(1.02);
}

/* Premium Button Animation */
.btn-premium {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.btn-premium:active {
  transform: scale(0.98);
}
