/* Slide-specific CSS variables */
:root {
    --zoom-scale: 1;
}

/* Sidebar layout inherited from shared-sidebar-layout.css */

.section-header {
    font-size: 0.73125rem;
    font-weight: 700;
    color: #3479FF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    padding-left: 2px;
}

.section-header .icon {
    font-size: 0.975rem;
    position: relative;
    top: 1px;
}

.class-selector-section .section-header .icon {
    top: -1px;
}

/* Class Selector */
.class-selector-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.class-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.class-dropdown-container {
    position: relative;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.class-dropdown-btn {
    width: 100%;
    padding: 7px 12px 7px 8px;
    background: #fafafa;
    color: #333;
    border: 2px solid #EEEEEE;
    border-radius: 10px;
    font-size: 0.7125rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    height: 36px;
    text-align: left;
}

.class-dropdown-btn .dropdown-icon {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    color: #667eea;
}

.class-dropdown-btn.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
}

.class-dropdown-btn:hover {
    background: #fff;
    border-color: #3479FF;
}

.class-dropdown-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.class-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    max-height: 390px;
    overflow-y: auto;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.class-dropdown-menu.show {
    display: flex;
}

.class-option {
    padding: 8px 12px 8px 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.7125rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
    line-height: 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.class-option:hover {
    background: #f5f5f5;
}

.class-option:active {
    background: #e8e8e8;
}

.class-option.create-new-option {
    color: #3479FF;
    font-weight: 700;
}

.class-dropdown-btn .class-name-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.class-dropdown-btn.loading {
    color: #999;
}

.class-dropdown-btn.loading .dropdown-icon {
    animation: spin-icon 0.8s linear infinite;
}

@keyframes spin-icon {
    to {
        transform: rotate(360deg);
    }
}

.class-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    font-size: 0.825rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.class-btn:hover {
    border-color: #3479FF;
    background: #f0f4ff;
}

.delete-class-btn {
    font-size: 0.675rem;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
}

.delete-class-btn:hover {
    border-color: #e74c3c;
    background: #fef2f2;
}

.delete-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.class-name-input {
    margin-top: 10px;
    padding: 7px 8px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.7125rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #333;
}

.class-name-input:focus {
    outline: none;
    border-color: #3479FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Add Students */
.bulk-section {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    flex-shrink: 0;
}

.bulk-textarea {
    width: 100%;
    min-height: 82px;
    padding: 8px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.7125rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #333;
}

.bulk-textarea:focus {
    outline: none;
    border-color: #3479FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.bulk-textarea::placeholder {
    color: #aaa;
}

.bulk-add-btn {
    margin-top: 10px;
    padding: 9px 14px;
    background: #3379FF;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.675rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(51, 121, 255, 0.4);
}

.bulk-add-btn:active {
    transform: translateY(0);
}


/* Student List */
.student-list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: -14px;
}

.student-list-header {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.student-filter-toggle {
    display: flex;
    width: 100%;
    gap: 4px;
    background: #f5f5f5;
    padding: 2px;
    border-radius: 8px;
}

.filter-toggle-btn {
    font-size: 0.6rem;
    font-weight: 600;
    color: #999;
    background: transparent;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex: 1;
}

.filter-toggle-btn:hover {
    color: #3379FF;
    background: rgba(51, 121, 255, 0.1);
}

.filter-toggle-btn.active {
    color: #3379FF;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #DDDDDD;
    color: #656565;
    font-size: 0.55rem;
    font-weight: 600;
    margin-left: 2px;
    line-height: 1;
}

.filter-toggle-btn.active .filter-toggle-count {
    background: #DDDDDD;
    color: #656565;
}

.student-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.student-list {
    position: absolute;
    top: 44px; /* Height of the header */
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.students-placeholder-image {
    width: 40%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.student-list::-webkit-scrollbar {
    width: 8px;
}

.student-list::-webkit-scrollbar-track {
    background: transparent;
}

.student-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.student-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
    border: 1.56px solid #e0e7ff;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.student-item:hover {
    background: #f0f4ff;
    border-color: #e0e7ff;
}

.student-item.hidden {
    background: rgba(248, 249, 250, 0.5);
    border-color: transparent;
}

.student-item.hidden .student-name {
    text-decoration: line-through;
    text-decoration-color: #999;
    text-decoration-thickness: 2px;
    opacity: 0.6;
    color: #999;
}

.student-item.hidden:hover {
    background: #E8E8E8;
    border-color: #CCCCCC;
}

.student-item.hidden .student-item-actions {
    opacity: 1;
}

.student-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.student-name {
    font-weight: 600;
    color: #333;
    font-size: 0.7125rem;
    cursor: text;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 4px;
    outline: none;
    transition: background 0.2s ease;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-name:hover {
    background: rgba(52, 121, 255, 0.1);
}

.student-name:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #3479FF;
}

.student-item-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.hide-show-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hide-show-btn:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

.hide-show-btn .hide-icon {
    width: 11.2px;
    height: 11.2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hide-show-btn .hide-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.student-item.hidden .hide-icon img {
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.8;
}

.remove-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.remove-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.remove-btn .remove-icon {
    font-size: 0.825rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Group Size Selector */
.group-size-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #eee;
}

.stepper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.size-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    color: #3479FF;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    background: #f0f4ff;
}

.size-btn:active {
    background: #e0e7ff;
}

.size-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.size-input {
    width: 50px;
    height: 40px;
    padding: 0;
    border: none;
    border-left: 2px solid #e5e7eb;
    border-right: 2px solid #e5e7eb;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    -moz-appearance: textfield;
}

.size-input::-webkit-outer-spin-button,
.size-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.size-input:focus {
    outline: none;
    background: #f8f9ff;
}

/* Generate Button */
.generate-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.generate-btn .shuffle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.generate-btn:hover .shuffle-icon {
    transform: rotate(180deg);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 33px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    min-height: 0;
    z-index: 1;

    width: calc(100vw - var(--sidebar-offset));
    margin-left: var(--sidebar-offset);
    transition: width 0.3s ease, margin-left 0.3s ease;
    /* Prevent scroll jumping during DOM updates */
    overflow-anchor: auto;
    scroll-behavior: auto;
}

.main-content::before,
.main-content::after {
    display: none;
}

/* Toggle Switch Container */
/* Removed old toggle-container and toggle-wrapper styles - now in sidebar */

.toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1400px;
}

.restart-scores-btn {
    position: fixed;
    bottom: 5px;
    right: 210px;
    height: 32px;
    padding: 0 12px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.restart-scores-btn:hover {
    background: #f8f9fa;
}

.restart-scores-btn:active {
    transform: translateY(1px);
}

.restart-scores-btn img {
    display: none;
}

.restart-scores-btn span {
    line-height: 1;
}

.restart-scores-btn:hover {
    background: #f0f4ff;
    border-color: #3479FF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: calc(12px * var(--zoom-scale));
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
    flex: 1;
    padding-top: 20px;
    padding-bottom: 40px;
    /* Prevent scroll jumping during DOM updates */
    overflow-anchor: auto;
}

.leaderboard-search-bar {
    width: 100%;
    margin-bottom: calc(2px * var(--zoom-scale));
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaderboard-search-input {
    width: 100%;
    padding: calc(3px * var(--zoom-scale)) 0;
    border: calc(2px * var(--zoom-scale)) solid #eee;
    border-radius: calc(10px * var(--zoom-scale));
    font-size: calc(0.9rem * var(--zoom-scale));
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #333;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
}

.leaderboard-search-input:focus {
    outline: none;
    border-color: #3479FF;
    background: #fff;
    box-shadow: 0 0 0 calc(4px * var(--zoom-scale)) rgba(102, 126, 234, 0.1);
}

.leaderboard-search-input::placeholder {
    color: #aaa;
}

.leaderboard-item {
    background: #fff;
    border-radius: calc(16px * var(--zoom-scale));
    padding: calc(10.5px * var(--zoom-scale)) calc(12.6px * var(--zoom-scale)) calc(10.5px * var(--zoom-scale)) calc(10px * var(--zoom-scale));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: calc(3px * var(--zoom-scale)) solid transparent;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: calc(10px * var(--zoom-scale));
    /* Prevent layout shift during updates */
    contain: layout style;
}

.leaderboard-item.rank-1 {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #fffef0 100%);
}

.leaderboard-item.rank-2 {
    border-color: #C0C0C0;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

.leaderboard-item.rank-3 {
    border-color: #CD7F32;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
}

.leaderboard-rank {
    font-size: calc(1.95rem * var(--zoom-scale));
    font-weight: 800;
    color: #3479FF;
    min-width: calc(50px * var(--zoom-scale));
    text-align: center;
    padding: 0;
}

.leaderboard-item.rank-1 .leaderboard-rank {
    font-size: calc(2.6rem * var(--zoom-scale));
    color: #FFD700;
}

.leaderboard-item.rank-2 .leaderboard-rank {
    font-size: calc(2.34rem * var(--zoom-scale));
    color: #C0C0C0;
}

.leaderboard-item.rank-3 .leaderboard-rank {
    font-size: calc(2.34rem * var(--zoom-scale));
    color: #CD7F32;
}

.leaderboard-medal {
    font-size: calc(2rem * var(--zoom-scale));
    min-width: calc(50px * var(--zoom-scale));
    text-align: center;
}

.leaderboard-student-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(4px * var(--zoom-scale));
    align-items: flex-start;
}

.leaderboard-student-name {
    font-size: calc(2.057rem * var(--zoom-scale));
    font-weight: 700;
    color: #333;
    cursor: text;
    padding: calc(3px * var(--zoom-scale)) calc(6px * var(--zoom-scale));
    margin-left: 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    width: fit-content;
    overflow-wrap: break-word;
    word-break: break-word;
    outline: none;
}

.leaderboard-student-name:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.leaderboard-student-name:focus {
    outline: 2px solid #4A90E2;
    background-color: rgba(74, 144, 226, 0.05);
}

.leaderboard-points-section {
    display: flex;
    align-items: center;
    gap: calc(12px * var(--zoom-scale));
    margin-right: calc(15px * var(--zoom-scale));
}

.leaderboard-points-label {
    font-size: calc(0.9rem * var(--zoom-scale));
    font-weight: 600;
    color: #888;
}

.leaderboard-points-display {
    display: flex;
    align-items: center;
    gap: calc(8px * var(--zoom-scale));
}

.leaderboard-points-value {
    font-size: calc(1.3rem * var(--zoom-scale));
    font-weight: 700;
    color: #3479FF;
    min-width: calc(50px * var(--zoom-scale));
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    padding: 4px;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.leaderboard-points-value::-webkit-outer-spin-button,
.leaderboard-points-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.leaderboard-points-value:focus {
    outline: none;
    border-color: #3479FF;
    background: #f0f4ff;
}

.leaderboard-points-btn {
    width: calc(36px * var(--zoom-scale));
    height: calc(36px * var(--zoom-scale));
    border: calc(2px * var(--zoom-scale)) solid #667eea;
    border-radius: calc(8px * var(--zoom-scale));
    background: #fff;
    color: #3479FF;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-points-btn:hover {
    background: #f0f4ff;
    transform: scale(1.1);
}

.leaderboard-points-btn:active {
    transform: scale(0.95);
}

.leaderboard-points-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.leaderboard-points-btn.disabled:hover {
    background: #fff;
    transform: none;
}

/* Empty State */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.075s ease-in;
}

.empty-state.visible {
    opacity: 1;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    width: 312.5px;
    height: 312.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.empty-state h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 360px;
    line-height: 1.6;
}

/* Group Cards */
.group-card {
    background: #fff;
    border-radius: 16px;
    padding: 15.4px;
    padding-bottom: 15.4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ranking Styles */
.group-card.rank-1 {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #fffef0 100%);
}

.group-card.rank-2 {
    border-color: #C0C0C0;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

.group-card.rank-3 {
    border-color: #CD7F32;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
}

.rank-badge {
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    animation: medalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rank-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.rank-label.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-label.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-label.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

@keyframes medalPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11.2px;
    padding-bottom: 9.8px;
    border-bottom: 1px solid #eee;
}

.group-emoji {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.group-emoji:hover {
    background: #f0f4ff;
    transform: scale(1.1);
}

/* Emoji Picker Styles */
.emoji-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.emoji-picker-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.emoji-picker {
    background: white;
    border-radius: 16px;
    padding: 24px 24px 0 24px;
    max-width: 480px;
    width: 90%;
    height: 500px;
    max-height: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.emoji-picker-overlay.show .emoji-picker {
    transform: scale(1);
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.emoji-picker-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.emoji-picker-search {
    margin-bottom: 16px;
    position: relative;
}

.emoji-picker-search-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #333;
}

.emoji-picker-search-input:focus {
    outline: none;
    border-color: #3479FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.emoji-picker-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
}

.emoji-picker-search-input:focus+.emoji-picker-search-icon {
    color: #3479FF;
}

.emoji-picker-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.emoji-picker-close:hover {
    background: #f5f5f5;
    color: #333;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 70px);
    justify-content: center;
    align-content: start;
    gap: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding: 0;
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.emoji-picker-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker-grid::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-picker-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.emoji-picker-item {
    font-size: 2rem;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    box-sizing: border-box;
}

.emoji-picker-item:hover {
    background: #f0f4ff;
}

.group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    cursor: text;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 6px;
    outline: none;
    transition: background-color 0.2s ease;
}

.group-title:hover {
    background: #f5f5f5;
}

.group-title:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #e0e7ff;
}

.group-count-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.add-member-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #3479FF;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.add-member-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(52, 121, 255, 0.4);
}

.add-member-btn:active {
    transform: scale(0.95);
}

/* Add Member Popup Styles */
.add-member-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.add-member-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.add-member-popup {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.add-member-overlay.show .add-member-popup {
    transform: scale(1);
}

.add-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.add-member-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.add-member-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.add-member-close:hover {
    background: #f5f5f5;
    color: #333;
}

.add-member-input-section {
    margin-bottom: 16px;
}

.add-member-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #333;
}

.add-member-textarea:focus {
    outline: none;
    border-color: #3479FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.add-member-textarea::placeholder {
    color: #aaa;
}

.add-member-submit {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.add-member-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.add-member-submit:active {
    transform: translateY(0);
}

.add-member-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #999;
    font-size: 0.8rem;
    font-weight: 600;
}

.add-member-divider::before,
.add-member-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.add-member-student-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    padding-right: 6px;
}

.add-member-student-list::-webkit-scrollbar {
    width: 5px;
}

.add-member-student-list::-webkit-scrollbar-track {
    background: transparent;
}

.add-member-student-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.add-member-student-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.add-member-student-item:hover {
    background: #f0f4ff;
    border-color: #e0e7ff;
}

.add-member-student-item.in-group {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-member-student-item.in-group:hover {
    background: #f8f9fa;
    border-color: transparent;
}

.add-member-student-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.add-member-student-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
}

.add-member-student-item.in-group .add-member-student-status {
    background: #e8f5e9;
    color: #4caf50;
}

.add-member-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
}

.group-points-container {
    margin-top: auto;
    padding-top: 11.2px;
    border-top: 2px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.group-points-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.rank-widget {
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.rank-widget.hidden {
    visibility: hidden;
    opacity: 0;
}

.rank-widget .rank-label {
    margin: 0;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

.rank-widget .rank-label .rank-emoji {
    font-size: 1.45em;
    display: inline-block;
}

.rank-widget.rank-2 .rank-label {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-widget.rank-3 .rank-label {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
    color: white;
}

.rank-widget .rank-badge {
    margin: 0;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rank-widget.rank-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rank-widget.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.6), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.group-points-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.group-points-label {
    font-size: 1.02rem;
    font-weight: 700;
    color: #3479FF;
}

.group-points-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3479FF;
    min-width: 30px;
    width: 50px;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    padding: 4px;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.points-value::-webkit-outer-spin-button,
.points-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.points-value:focus {
    outline: none;
    border-color: #3479FF;
    background: #f0f4ff;
}

.points-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: #fff;
    color: #3479FF;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-btn:hover {
    background: #f0f4ff;
    transform: scale(1.1);
}

.points-btn:active {
    transform: scale(0.95);
}

.group-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    margin-bottom: 11.2px;
}

.member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.member:hover {
    background: #f0f4ff;
    border-color: #e0e7ff;
}

/* Drag tooltip */
.member-tooltip {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.member-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000;
}

.member:hover .member-tooltip {
    opacity: 1;
}

.member-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.member-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Color variations for groups */
.group-card:nth-child(6n+1) .member-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.group-card:nth-child(6n+2) .member-avatar {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.group-card:nth-child(6n+3) .member-avatar {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.group-card:nth-child(6n+4) .member-avatar {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.group-card:nth-child(6n+5) .member-avatar {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.group-card:nth-child(6n+6) .member-avatar {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #555;
}

/* Drag and Drop Styles */
.member[draggable="true"] {
    cursor: grab;
}

.member[draggable="true"]:active {
    cursor: grabbing;
}

.member.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    background: #e8ecff;
    border: 2px dashed #667eea;
}

.group-card.drag-over {
    background: #f0f4ff;
    border: 2px dashed #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.group-card.drag-over .group-members {
    min-height: 60px;
}

.member-drag-handle {
    color: #555;
    margin-right: 4px;
    font-size: 1.3rem;
    cursor: grab;
    transition: color 0.2s ease;
}

.member:hover .member-drag-handle {
    color: #3479FF;
}

.drop-hint {
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed #667eea;
    border-radius: 10px;
    text-align: center;
    color: #3479FF;
    font-weight: 600;
    font-size: 0.85rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive */
/* Responsive sidebar width breakpoints inherited from shared-sidebar-layout.css */
@media (max-width: 768px) {
    .main-content {
        padding: 0 10px;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 0 8px;
    }

    .toggle-wrapper {
        padding: 8px 12px;
    }

    .toggle-label {
        font-size: 0.75rem;
    }

    .toggle-switch {
        width: 44px;
        height: 24px;
    }

    .toggle-switch::after {
        width: 18px;
        height: 18px;
    }

    .toggle-switch.active::after {
        transform: translateX(20px);
    }

    .groups-container {
        grid-template-columns: 1fr;
    }

    .leaderboard-container {
        gap: 10px;
    }

    .leaderboard-item {
        padding: 16px 20px;
        flex-wrap: wrap;
    }

    .leaderboard-student-name {
        font-size: 1.1rem;
    }

    .leaderboard-points-value {
        font-size: 1.1rem;
    }

    /* Old toggle-container styles removed */

    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .rank-label {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .rank-widget {
        gap: 14px;
    }

    .rank-widget .rank-label {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .rank-widget .rank-badge {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Zoom Control */
.zoom-control {
    position: fixed;
    bottom: 5px;
    right: 10px;
    display: none;
    align-items: center;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    height: 32px;
    width: 180px;
    overflow: hidden;
}

.zoom-control-inner {
    display: flex;
    align-items: center;
    background: #FAFAFA;
    height: 100%;
    width: 100%;
    border-radius: 6px;
}

.zoom-control-section {
    display: flex;
    align-items: center;
    height: 100%;
}

.zoom-info-section {
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zoom-control .zoom-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    color: #000;
}

.zoom-control .zoom-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom-percentage {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    min-width: 34px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.zoom-divider {
    width: 2px;
    height: 100%;
    background: #E0E0E0;
}

.zoom-button-wrapper {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-button-wrapper:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.zoom-button-wrapper.disabled {
    cursor: default;
}

.zoom-control button {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #3379FF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    pointer-events: none;
}

.zoom-button-wrapper.disabled button {
    color: #E0E0E0;
}

.zoom-slider-container {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 8px;
}

.zoom-slider-track {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1px;
    background: #E0E0E0;
    border-radius: 0.5px;
}

.zoom-slider-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.1s ease;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
}

.zoom-slider-dot:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.1);
}
