/* 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-list {
    position: absolute;
    top: 44px;
    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;
}

/* 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;
}

.restart-scores-btn {
    display: none !important; /* Hidden - now in top bar */
    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);
}

.behavior-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;
}

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

.behavior-search-input {
    width: 100%;
    padding: calc(10px * var(--zoom-scale)) calc(12px * var(--zoom-scale));
    border: calc(2px * var(--zoom-scale)) solid #eee;
    border-radius: calc(12px * 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;
}

.behavior-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);
}

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

/* Top bar with buttons on left, search on right */
.behavior-top-bar {
    width: 100%;
    display: flex;
    gap: calc(10px * var(--zoom-scale));
    margin-bottom: calc(11px * var(--zoom-scale));
    animation: slideDown 0.3s ease;
    align-items: center;
}

.behavior-top-bar .behavior-search-input {
    flex: 1;
    min-width: 0;
}

/* Order by Score button - matching group randomizer style */
.order-by-score-btn {
    padding: calc(10px * var(--zoom-scale)) calc(20px * var(--zoom-scale));
    background: white;
    color: #333;
    border: calc(2px * var(--zoom-scale)) solid transparent;
    border-radius: calc(12px * var(--zoom-scale));
    font-size: calc(0.85rem * var(--zoom-scale));
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1.2;
    height: calc(46px * var(--zoom-scale));
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.order-by-score-btn .order-by-score-text {
    margin-left: calc(6px * var(--zoom-scale));
}

.order-by-score-btn:hover {
    background: #f5f5f5;
    border: calc(2px * var(--zoom-scale)) solid #832DC5;
}

.order-by-score-btn:active {
    transform: translateY(0);
}

/* Reset All button - matching group randomizer style */
.reset-all-btn-inline {
    padding: calc(10px * var(--zoom-scale)) calc(20px * var(--zoom-scale));
    background: white;
    color: #333;
    border: calc(2px * var(--zoom-scale)) solid transparent;
    border-radius: calc(12px * var(--zoom-scale));
    font-size: calc(0.85rem * var(--zoom-scale));
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1.2;
    height: calc(46px * var(--zoom-scale));
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.reset-all-btn-inline .reset-all-text {
    margin-left: calc(6px * var(--zoom-scale));
}

.reset-all-btn-inline:hover {
    background: #f5f5f5;
    border: calc(2px * var(--zoom-scale)) solid #832DC5;
}

.reset-all-btn-inline:active {
    transform: translateY(0);
}

.behavior-item {
    background: #fff;
    border-radius: calc(16px * var(--zoom-scale));
    padding: calc(4.374px * var(--zoom-scale)) calc(8.505px * var(--zoom-scale)) calc(7.29px * var(--zoom-scale)) calc(8.505px * 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;
    flex-direction: column;
    gap: calc(4.374px * var(--zoom-scale));
    /* Prevent layout shift during updates */
    contain: layout style;
}

.behavior-row {
    display: flex;
    align-items: center;
    gap: calc(5px * var(--zoom-scale));
    width: 100%;
}

.behavior-row-top {
    justify-content: flex-start;
}

.behavior-row-bottom {
    gap: calc(8px * var(--zoom-scale));
}

.behavior-actions {
    display: flex;
    flex-direction: row;
    gap: calc(12px * var(--zoom-scale));
    align-items: center;
    flex-shrink: 0;
}

.behavior-control {
    display: flex;
    align-items: center;
    gap: calc(6px * var(--zoom-scale));
}

.behavior-icon {
    width: calc(40px * var(--zoom-scale));
    height: calc(40px * var(--zoom-scale));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(6px * var(--zoom-scale));
    position: relative;
    flex-shrink: 0;
}

.behavior-icon.behavior-box-red {
    background-color: #D42111;
    box-shadow: 0 2px 4px rgba(212, 33, 17, 0.3);
}

.behavior-icon.behavior-box-yellow {
    background-color: #F0B802;
    box-shadow: 0 2px 4px rgba(240, 184, 2, 0.3);
}

.behavior-icon.behavior-box-green {
    background-color: #02B102;
    box-shadow: 0 2px 4px rgba(2, 177, 2, 0.3);
}

.behavior-count {
    font-size: calc(1.1rem * var(--zoom-scale));
    font-weight: 700;
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.behavior-btn-control {
    width: calc(40.1064px * var(--zoom-scale));
    height: calc(40.1064px * var(--zoom-scale));
    border: calc(2px * var(--zoom-scale)) solid #E0E0E0;
    border-radius: calc(6px * var(--zoom-scale));
    background: white;
    font-size: calc(1.728rem * var(--zoom-scale));
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
}

.behavior-btn-control:hover:not(.disabled) {
    border-color: #3479FF;
    color: #3479FF;
}

.behavior-btn-control:active:not(.disabled) {
    transform: scale(0.95);
}

.behavior-btn-control.disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.behavior-btn-control.plus-btn.green-plus:hover:not(.disabled) {
    background: #f0f4ff;
    border-color: #3479FF;
}

.behavior-btn-control.plus-btn.yellow-plus:hover:not(.disabled) {
    background: #f0f4ff;
    border-color: #3479FF;
}

.behavior-btn-control.plus-btn.red-plus:hover:not(.disabled) {
    background: #f0f4ff;
    border-color: #3479FF;
}

.behavior-btn-control.minus-btn:hover:not(.disabled) {
    background: #f0f4ff;
    border-color: #3479FF;
}

.behavior-score {
    width: calc(45px * var(--zoom-scale));
    height: calc(45px * var(--zoom-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(8px * var(--zoom-scale));
    font-size: calc(1.1rem * var(--zoom-scale));
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.behavior-student-info {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    margin-left: calc(1.512px * var(--zoom-scale));
}

.behavior-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));
    border-radius: 4px;
    transition: background-color 0.2s ease;
    outline: none;
    text-align: left;
}

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

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

.behavior-emojis {
    display: flex;
    flex-direction: row;
    gap: calc(2px * var(--zoom-scale));
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.behavior-emoji-display {
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    gap: calc(4px * var(--zoom-scale));
}

.behavior-box {
    width: calc(28px * var(--zoom-scale));
    height: calc(28px * var(--zoom-scale));
    display: inline-block;
    border-radius: calc(5px * var(--zoom-scale));
    flex-shrink: 0;
}

.behavior-box.behavior-box-red {
    background-color: #D42111;
    box-shadow: 0 calc(2px * var(--zoom-scale)) calc(4px * var(--zoom-scale)) rgba(212, 33, 17, 0.3);
}

.behavior-box.behavior-box-yellow {
    background-color: #F0B802;
    box-shadow: 0 calc(2px * var(--zoom-scale)) calc(4px * var(--zoom-scale)) rgba(240, 184, 2, 0.3);
}

.behavior-box.behavior-box-green {
    background-color: #02B102;
    box-shadow: 0 calc(2px * var(--zoom-scale)) calc(4px * var(--zoom-scale)) rgba(2, 177, 2, 0.3);
}


.behavior-notes {
    flex: 1;
    padding: calc(6.992px * var(--zoom-scale)) calc(12px * var(--zoom-scale));
    border: calc(2px * var(--zoom-scale)) solid #E0E0E0;
    border-radius: calc(8px * var(--zoom-scale));
    font-size: calc(0.9rem * var(--zoom-scale));
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
}

.behavior-notes:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 calc(3px * var(--zoom-scale)) rgba(102, 126, 234, 0.1);
}

.behavior-notes::placeholder {
    color: #aaa;
    font-weight: 300;
}

/* 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;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 0 10px;
    }

    .behavior-top-bar {
        flex-wrap: wrap;
    }

    .behavior-top-bar .behavior-search-input {
        flex: unset;
        width: 100%;
        order: 99;
    }
}

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

    .behavior-container {
        gap: 10px;
    }

    .behavior-item {
        padding: 12px 14px;
    }

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

    .behavior-row-top {
        align-items: flex-start;
        gap: 8px;
    }
    
    .behavior-score {
        width: calc(40px * var(--zoom-scale));
        height: calc(40px * var(--zoom-scale));
        font-size: calc(0.95rem * var(--zoom-scale));
    }

    .behavior-row-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .behavior-emojis {
        width: 100%;
    }

    .behavior-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .behavior-control {
        flex-shrink: 0;
    }

    .behavior-notes {
        width: 100%;
    }
}

/* 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);
}

/* Confirmation Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-icon {
    width: 56px;
    height: 56px;
    background: #ffe5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    fill: #dc3545;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 32px;
    font-family: 'Poppins', sans-serif;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.modal-btn-cancel {
    background: #e9e9e9;
    color: #666;
}

.modal-btn-cancel:hover {
    background: #d9d9d9;
}

.modal-btn-confirm {
    background: #dc3545;
    color: white;
}

.modal-btn-confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}
