/* Clean Professional Tab Navigation Styles */
.nav-tabs-custom {
  background: #ffffff;
  padding: 0;
  border-bottom: 2px solid #dee2e6;
  border-radius: 0;
  gap: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-tabs-custom .nav-item {
  margin: 0;
}

.nav-tabs-custom .nav-link {
  padding: 1rem 2rem;
  font-weight: 600;
  color: #6c757d;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Active state - Simple underline */
.nav-tabs-custom .nav-link.active {
  color: var(--primary);
  background: rgba(57, 73, 171, 0.15);
  border-bottom: 3px solid var(--primary);
}

/* Hover state for inactive tabs */
.nav-tabs-custom .nav-link:hover:not(.active) {
  color: var(--primary);
  background: rgba(57, 73, 171, 0.05);
  border-bottom: 3px solid rgba(57, 73, 171, 0.3);
}

/* Focus state for accessibility */
.nav-tabs-custom .nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Responsive adjustments for tablets */
@media (max-width: 992px) {
  .nav-tabs-custom .nav-link {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .nav-tabs-custom {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-bottom: 1px solid #dee2e6;
  }
  
  .nav-tabs-custom::-webkit-scrollbar {
    height: 3px;
  }
  
  .nav-tabs-custom::-webkit-scrollbar-track {
    background: #f8f9fa;
  }
  
  .nav-tabs-custom::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
  }
  
  .nav-tabs-custom .nav-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  
  .nav-tabs-custom .nav-link.active {
    border-bottom: 2px solid var(--primary);
  }
  
  .nav-tabs-custom .nav-link:hover:not(.active) {
    border-bottom: 2px solid rgba(57, 73, 171, 0.3);
  }
}

@media (max-width: 576px) {
  .nav-tabs-custom {
    flex-direction: column;
    overflow: visible;
    border-bottom: none;
    border-right: 2px solid #dee2e6;
  }
  
  .nav-tabs-custom .nav-link {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: none;
    border-right: 3px solid transparent;
  }
  
  .nav-tabs-custom .nav-link.active {
    border-bottom: none;
    border-right: 3px solid var(--primary);
    background: rgba(57, 73, 171, 0.05);
  }
  
  .nav-tabs-custom .nav-link:hover:not(.active) {
    border-bottom: none;
    border-right: 3px solid rgba(57, 73, 171, 0.3);
  }
  
  /* Better touch targets */
  .nav-tabs-custom .nav-link {
    min-height: 3rem;
  }
}

/* Tab content fade-in animation */
.tab-content > .tab-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tab-content > .active {
  display: block;
  opacity: 1;
}

/* Rating stars hover effect */
.rating-stars .rating-star {
  cursor: pointer;
  margin-right: 0.25rem;
  transition: all 0.2s ease;
}

.rating-stars .rating-star:hover {
  transform: scale(1.2);
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(57, 73, 171, 0.05);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(57, 73, 171, 0.25);
}

/* Hover effects for cards */
.test-series-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Card transitions */
.test-series-card .card-img-top:hover {
  transform: scale(1.1);
}

/* Custom border radius */
.rounded-4 {
  border-radius: 1rem !important;
}

/* Course preview play button hover effect */
.position-absolute.top-50.start-50.translate-middle:hover {
  background-color: var(--primary) !important;
  color: white !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Feature card hover effect */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Toast notification for share button */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  max-width: 300px;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* Thank you message animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thank-you-message {
  animation: fadeInUp 0.5s ease forwards;
}

.thank-you-message i.fas.fa-check-circle {
  filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.3));
}

/* Success icon pulse animation */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.thank-you-message i.fas.fa-check-circle {
  animation: successPulse 2s ease infinite;
}

/* Load More Button Styles */
.load-more-btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.load-more-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(57, 73, 171, 0.2);
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.load-more-btn .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Smooth fade-in animation for newly loaded tests */
@keyframes fadeInTest {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list-group-item {
  animation: fadeInTest 0.4s ease forwards;
}

/* Loading state text animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.load-more-btn:disabled .load-more-text {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Test count indicator styles */
.current-count {
  font-weight: 600;
  color: var(--primary);
}

.total-count {
  font-weight: 600;
  color: #6c757d;
}

/* All tests loaded message */
#load-more-container-* .text-success {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ================================================================ */
/* ACTION BUTTONS - Matching test series style */
/* ================================================================ */

.lesson-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Base action button styles */
.action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 20px !important;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.4;
}

.action-btn i {
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Hover effects */
.action-btn:hover:not(.disabled):not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action-btn:active:not(.disabled):not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Primary (Watch Now) */
.action-btn.btn-primary {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}
.action-btn.btn-primary:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35) !important;
}

/* Info (Coming Soon) */
.action-btn.btn-info {
  background: #11cdef !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(17, 205, 239, 0.2) !important;
}
.action-btn.btn-info:hover {
  background: #0db4d0 !important;
  box-shadow: 0 3px 10px rgba(17, 205, 239, 0.3) !important;
}

/* Premium badge - light silver grey */
.badge.action-btn {
  background: #adb5bd !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid #ced4da !important;
  box-shadow: none !important;
}

/* DESKTOP - Full buttons with text */
@media (min-width: 769px) {
  .action-btn .btn-text {
    display: inline;
  }
}

/* TABLET */
@media (max-width: 991px) and (min-width: 769px) {
  .action-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }
  .action-btn i {
    font-size: 0.75rem;
  }
}

/* MOBILE - Icon-only buttons */
@media (max-width: 768px) {
  .lesson-actions {
    gap: 0.375rem !important;
  }

  .action-btn {
    padding: 0.5rem !important;
    min-width: 38px !important;
    height: 38px !important;
    gap: 0 !important;
    border-radius: 50% !important;
  }

  .action-btn .btn-text {
    display: none !important;
  }

  .action-btn i {
    font-size: 0.9rem !important;
    margin: 0 !important;
  }
}

/* VERY SMALL SCREENS */
@media (max-width: 480px) {
  .lesson-actions {
    gap: 0.3rem !important;
  }

  .action-btn {
    padding: 0.4rem !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 20px !important;
  }

  .action-btn i {
    font-size: 0.85rem !important;
  }
}