:host {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding-right: 0.5rem;
    border-radius: 8px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;

    &:hover {
        background: #f3f4f6;
        color: #374151;
    }

    &.active {
        background: #eef2ff;
        color: #4f46e5;
    }

     & + & {
        border-left: 1px solid #d1d5db;
    }
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-left: 0.75rem;
}

.toolbar-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    color: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.toolbar-btn:hover {
    background: #eef2ff;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
}

.student-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.list-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.list-row {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    font-size: 0.9rem;

    &:last-child {
        border-bottom: none;
    }

    &:hover {
        background: #f5f3ff;
    }
}

.col-name {
    flex: 2;
    font-weight: 600;
    color: #1f2937;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-iep,
.col-entry {
    flex: 1;
    color: #4b5563;
    font-size: 0.875rem;
}

.col-stat {
    flex: 0 0 80px;
    text-align: center;
    color: #374151;
    font-size: 0.875rem;
}

.no-entry {
    color: #9ca3af;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #555;
    font-size: 0.9375rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.scope-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4b5563;
    user-select: none;
}

.toggle-track {
    display: inline-flex;
    align-items: center;
    width: 36px;
    height: 20px;
    background: #d1d5db;
    border-radius: 10px;
    padding: 2px;
    transition: background 0.2s;

    &.active {
        background: #4f46e5;
    }
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;

    .active > & {
        transform: translateX(16px);
    }
}

.col-owner {
    flex: 1;
    color: #4b5563;
    font-size: 0.875rem;
}