/* ========================================
   MEDICAL QUIZ - Specific styling
   Uses base variables from theme.css
   ======================================== */

/* Base wrapper */
.tty-quiz-wrapper {
    position: relative;
    overflow: hidden;
    font-family: inherit;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 20px 100px 20px;
}

/* Decorative pattern background */
.tty-quiz-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 9%;
    width: 40%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10m0 30v10m-20-25h10m30 0h10' stroke='%23005F5F' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23005F5F'/%3E%3Ccircle cx='30' cy='15' r='2' fill='%23005F5F'/%3E%3Ccircle cx='30' cy='45' r='2' fill='%23005F5F'/%3E%3Ccircle cx='20' cy='30' r='2' fill='%23005F5F'/%3E%3Ccircle cx='40' cy='30' r='2' fill='%23005F5F'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Direct children above pattern */
.tty-quiz-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Banner section */
.tty-quiz-banner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.tty-quiz-header-content {
    width: 100%;
}

.tty-quiz-header-text {
    margin-bottom: 30px;
}

.tty-quiz-intro {
    font-size: 24px;
    color: var(--tty-primary);
    margin: 0px;
    font-weight: 600;
}

/* Global Statistics */
.tty-quiz-global-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tty-global-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 20px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 180px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 95, 95, 0.1);
}

.tty-global-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-primary);
    font-size: 22px;
    flex-shrink: 0;
}

.tty-global-stat-content {
    display: flex;
    flex-direction: column;
}

.tty-global-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--tty-primary);
    line-height: 1.2;
}

.tty-global-stat-label {
    font-size: 14px;
    color: #666;
}

/* Container layout */
.tty-quiz-container {
    display: flex;
    gap: 40px;
}

/* Sidebar */
.tty-quiz-sidebar {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    min-width: 0;
    position: sticky;
    top: 150px;
    height: fit-content;
}

.tty-quiz-filter-block {
    background-color: var(--tty-bg-secondary);
    border-radius: 30px;
    padding: 15px;
    margin-bottom: 20px;
}

.tty-quiz-filter-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--tty-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tty-quiz-filter-block h3 i {
    font-size: 17px;
}

/* Search Form - Unified rounded style */
.tty-quiz-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--tty-text-light);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
}

.tty-quiz-search-form .tty-quiz-search-form:focus-within {
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

.tty-quiz-search-form .tty-quiz-search-input {
    flex: 1;
    padding: 10px 0 !important;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.tty-quiz-search-form .tty-quiz-search-input::placeholder {
    color: #999;
}

.tty-quiz-search-form .tty-quiz-sidebar .tty-quiz-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tty-quiz-search-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  background: var(--tty-primary);
  color: var(--tty-text-light);
  border-radius: var(--tty-radius-lg);
  border: none;
  position: relative;
  padding: 0px;
  width: 36px;
  height: 36px;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.tty-quiz-search-btn:hover {
    transform: scale(1.05);
}

.tty-quiz-search-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Dark theme search form */
[data-theme="dark"] .tty-quiz-search-form {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Filter Lists */
.tty-quiz-category-list,
.tty-quiz-status-list,
.tty-quiz-sort-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tty-quiz-category-list li,
.tty-quiz-status-list li,
.tty-quiz-sort-list li {
    margin-bottom: 6px;
}

.tty-quiz-category-list a,
.tty-quiz-status-list a,
.tty-quiz-sort-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    color: inherit;
}

.tty-quiz-category-list a:hover,
.tty-quiz-status-list a:hover,
.tty-quiz-sort-list a:hover,
.tty-quiz-category-list a.active,
.tty-quiz-status-list a.active,
.tty-quiz-sort-list a.active {
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
}

.tty-category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.tty-quiz-category-list a.active .tty-category-count,
.tty-quiz-category-list a:hover .tty-category-count {
    background: rgba(255, 255, 255, 0.2);
}

.tty-quiz-status-list a i,
.tty-quiz-sort-list a i {
    margin-right: 8px;
    width: 16px;
}

/* Clear Filters */
.tty-quiz-clear-filters {
    background: transparent;
    padding: 0;
}

.tty-clear-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tty-clear-filters-btn:hover {
    background: #d32f2f;
    color: white;
}

/* ========================================
   CATEGORY PILLS - Compact tag cloud layout
   ======================================== */

.tty-quiz-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tty-quiz-category-list li {
    margin-bottom: 0;
}

.tty-quiz-category-list li.is-hidden {
    display: none;
}

.tty-quiz-category-list.is-expanded li.is-hidden {
    display: block;
}

.tty-quiz-category-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 95, 95, 0.08);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tty-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    word-break: break-word;
}

.tty-quiz-category-list a:hover {
    background: rgba(0, 95, 95, 0.15);
    color: var(--tty-primary);
}

.tty-quiz-category-list a.active {
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
}

.tty-quiz-category-list .tty-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.tty-quiz-category-list a.active .tty-category-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Show more/less toggle button */
.tty-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed rgba(0, 95, 95, 0.3);
    border-radius: 20px;
    color: var(--tty-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tty-category-toggle:hover {
    background: rgba(0, 95, 95, 0.05);
    border-style: solid;
}

.tty-category-toggle i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.tty-category-toggle.is-expanded i {
    transform: rotate(180deg);
}

/* Dark theme adjustments */
[data-theme="dark"] .tty-quiz-category-list a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--tty-text-primary);
}

[data-theme="dark"] .tty-quiz-category-list a:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tty-category-toggle {
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .tty-category-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.tty-quiz-content-main {
    flex: 1;
    min-width: 0;
}

/* Active Filters */
.tty-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 95, 95, 0.05);
    border-radius: 12px;
}

.tty-active-filters-label {
    font-weight: 600;
    color: var(--tty-primary);
    font-size: 14px;
}

.tty-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--tty-primary);
    color: white;
    border-radius: 20px;
    font-size: 13px;
}

.tty-filter-tag i {
    font-size: 12px;
}

.tty-filter-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tty-filter-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Results Info */
.tty-quiz-results-info {
    margin-bottom: 20px;
}

.tty-results-count {
    color: #666;
    font-size: 14px;
}

/* Quiz Grid */
.tty-quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Quiz Card */
.tty-quiz-card {
    background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 95, 95, 0.08);
}

.tty-quiz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.tty-quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tty-quiz-card:hover::before {
    transform: scaleX(1);
}

.tty-quiz-completed {
    border-left: 4px solid #4CAF50;
}

/* Completion Badge */
.tty-quiz-completion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tty-quiz-completion-badge i {
    font-size: 14px;
}

/* Card Image */
.tty-quiz-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    transition: transform 0.3s ease;
}

.tty-quiz-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tty-quiz-card:hover .tty-quiz-card-image img {
    transform: scale(1.05);
}

.tty-quiz-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--tty-primary);
    opacity: 0.5;
}

.tty-quiz-question-count {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  right: auto;
}

/* Card Content */
.tty-quiz-card-content {
    padding: 20px;
}

/* Categories */
.tty-quiz-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tty-quiz-category-tag {
    padding: 4px 10px;
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tty-quiz-category-more {
    padding: 4px 8px;
    background: rgba(0, 95, 95, 0.05);
    color: #666;
    border-radius: 12px;
    font-size: 11px;
}

/* Card Title */
.tty-quiz-card-title {
margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tty-header-primary) !important;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tty-quiz-card-title a {
  color: var(--tty-header-primary) !important;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
}


/* ========================================
   STRETCHED LINK - Hele card klikbaar
   ======================================== */

/* De link in de titel strekt zich uit over de hele card */
.tty-quiz-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Hover effect op hele card via link */
.tty-quiz-card-title a:hover::after {
    cursor: pointer;
}

/* Elementen die boven de stretched link moeten blijven */
.tty-quiz-card-actions {
    position: relative;
    z-index: 2;
}

.tty-quiz-completion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}


/* Card Excerpt */
.tty-quiz-card-excerpt {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Card Stats */
.tty-quiz-card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tty-quiz-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.tty-quiz-stat i {
    color: var(--tty-primary);
}

.tty-quiz-stat.tty-quiz-new {
    color: var(--tty-primary);
    font-weight: 600;
}

/* Card Actions */
.tty-quiz-card-actions {
    display: flex;
    gap: 10px;
}

.tty-quiz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.tty-quiz-btn-start {
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
}

.tty-quiz-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
    color: var(--tty-text-light);
}

.tty-quiz-btn-retry {
    color: var(--tty-text-light);
}

.tty-quiz-btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--tty-text-light);
}

/* Pagination */
.tty-quiz-pagination {
    margin-top: 40px;
    margin-bottom: 60px;
}

.tty-quiz-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tty-quiz-pagination li {
    margin: 0;
}

.tty-quiz-pagination a,
.tty-quiz-pagination span {
  min-width: 45px;
  width: 45px;
  height: 45px;
  padding: 0 15px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  color: var(--tty-text-primary);
  font-weight: 500;
  transition: var(--tto-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tty-quiz-pagination a:hover {
    background: var(--tty-primary);
    color: var(--tty-text-light);
    border: var(--tty-primary);
}

.tty-quiz-pagination .current {
    background: var(--tty-primary);
    color: var(--tty-text-light);
    border: var(--tty-primary);
}

.tty-quiz-pagination .prev,
.tty-quiz-pagination .next {
    gap: 6px;
}

/* Empty State */
.tty-quiz-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--tty-bg-secondary);
    border-radius: 30px;
}

.tty-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(0, 95, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--tty-primary);
}

.tty-quiz-empty-state h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: var(--tty-primary);
}

.tty-quiz-empty-state p {
    margin: 0 0 25px;
    color: #666;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark theme adjustments */
[data-theme="dark"] .tty-quiz-wrapper::before {
    opacity: 0.03;
}

[data-theme="dark"] .tty-quiz-card,
[data-theme="dark"] .tty-global-stat-item {
    background: var(--tty-bg-tertiary);
    border-color: rgba(0, 95, 95, 0.2);
}

[data-theme="dark"] .tty-quiz-empty-state,
[data-theme="dark"] .tty-quiz-filter-block {
    background: var(--tty-bg-tertiary);
}

[data-theme="dark"] .tty-quiz-search-input {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    color: inherit;
}

[data-theme="dark"] .tty-quiz-card-excerpt,
[data-theme="dark"] .tty-quiz-stat,
[data-theme="dark"] .tty-global-stat-label,
[data-theme="dark"] .tty-results-count {
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tty-quiz-container {
        flex-direction: column;
    }
    
    .tty-quiz-sidebar {
        position: relative;
        top: 0;
        flex: 1 1 auto;
        width: 100%;
    }
    
    .tty-quiz-global-stats {
        flex-wrap: wrap;
    }
    
    .tty-global-stat-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .tty-quiz-wrapper::before {
        display: none;
    }
    
    .tty-quiz-banner {
        margin-top: 20px;
    }
    
    .tty-quiz-intro {
        font-size: 20px;
    }
    
    /* Compact horizontal stats bar for mobile */
    .tty-quiz-global-stats {
        background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.95) 100%);
        border-radius: 16px;
        padding: 12px 8px;
        gap: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 95, 95, 0.1);
    }
    
    .tty-global-stat-item {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 8px 4px;
        border-radius: 0;
        justify-content: center;
        gap: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Add dividers between stats */
    .tty-global-stat-item:not(:last-child) {
        border-right: 1px solid rgba(0, 95, 95, 0.15);
    }
    
    /* Hide icons on mobile for compact view */
    .tty-global-stat-item .tty-global-stat-icon {
        display: none;
    }
    
    .tty-global-stat-content {
        align-items: center;
    }
    
    .tty-global-stat-number {
        font-size: 20px;
        line-height: 1.1;
    }
    
    .tty-global-stat-label {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .tty-quiz-grid {
        grid-template-columns: 1fr;
    }
    
    .tty-active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .tty-quiz-filter-block {
        padding: 15px;
    }
    
    .tty-quiz-card-content {
        padding: 15px;
    }
    
    /* Even more compact stats on very small screens */
    .tty-quiz-global-stats {
        padding: 10px 4px;
    }
    
    .tty-global-stat-number {
        font-size: 18px;
    }
    
    .tty-global-stat-label {
        font-size: 10px;
    }
}

/* Print styles */
@media print {
    .tty-quiz-sidebar,
    .tty-quiz-card-actions,
    .tty-quiz-pagination {
        display: none;
    }
    
    .tty-quiz-container {
        flex-direction: column;
    }
    
    .tty-quiz-wrapper::before {
        display: none;
    }
    
    .tty-quiz-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================================
   MOBILE FILTER TOGGLE
   ======================================== */

/* Hide toggle on desktop */
.tty-quiz-filter-toggle {
    display: none;
}

/* Mobile styles */
@media (max-width: 992px) {
    /* Show toggle button */
    .tty-quiz-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 20px;
        margin-bottom: -20px;
        background: var(--tty-bg-linear-graniet);
        color: var(--tty-text-light);
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 95, 95, 0.2);
    }
    
    .tty-quiz-content-main {
  		margin-top: -20px;
	}
    
    .tty-quiz-filter-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
    }
    
    .tty-quiz-filter-toggle:active {
        transform: translateY(0);
    }
    
    .tty-quiz-filter-toggle .tty-toggle-icon {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .tty-quiz-filter-toggle[aria-expanded="true"] .tty-toggle-icon {
        transform: rotate(180deg);
    }
    
    .tty-filter-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 11px;
        font-size: 12px;
        font-weight: 700;
    }
    
    /* Sidebar collapsed state */
    .tty-quiz-sidebar {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-bottom: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
    }
    
    /* Sidebar expanded state */
    .tty-quiz-sidebar.is-expanded {
        max-height: 2000px;
        opacity: 1;
        margin-bottom: 30px;
    }

}

/* Dark theme toggle */
[data-theme="dark"] .tty-quiz-filter-toggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tty-filter-badge {
    background: rgba(255, 255, 255, 0.15);
}