/**
 * Plan de Classe v2.0 - Styles Isolés
 * Préfixe unique: .pcv2- pour éviter tout conflit
 * Compatible avec le thème Saint-Elme existant
 */

/* =====================================================
   CONTENEUR PRINCIPAL ISOLÉ
   ===================================================== */

.pcv2-wrapper {
    /* Isolation complète du contexte */
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #162C5A;
}

.pcv2-wrapper * {
    box-sizing: border-box;
}

/* Header spécifique v2 */
.pcv2-header {
    background: linear-gradient(135deg, #4054B2 0%, #162C5A 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.pcv2-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.pcv2-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Workflow Steps isolé - Version compacte */
.pcv2-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pcv2-step {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pcv2-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F2F2F7;
    border: 2px solid #F2F2F7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #7d7d7d;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.pcv2-step.active {
    background: #4054B2;
}

.pcv2-step.active .pcv2-step-number {
    background: white;
    color: #4054B2;
    border-color: white;
}

.pcv2-step.active .pcv2-step-title {
    color: white;
}

.pcv2-step.completed .pcv2-step-number {
    background: #ffd223;
    color: #162C5A;
    border-color: #ffd223;
}

.pcv2-step-title {
    font-weight: 500;
    font-size: 14px;
    color: #162C5A;
    white-space: nowrap;
}

/* Sur mobile, réduire encore plus */
@media (max-width: 768px) {
    .pcv2-steps {
        margin: 10px 0;
        padding: 8px;
    }
    
    .pcv2-step {
        padding: 4px 8px;
    }
    
    .pcv2-step-title {
        font-size: 12px;
    }
    
    .pcv2-step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* Conteneurs de section */
.pcv2-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.pcv2-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #162C5A;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F2F2F7;
}

/* Designer Toolbar isolé et amélioré */
.pcv2-toolbar {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    align-items: flex-start;
}

/* Barre d'outils flottante pour tablette/mobile */
.pcv2-toolbar-floating {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 10px 15px;
    z-index: 1000;
    max-width: calc(100% - 40px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pcv2-toolbar-floating-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pcv2-tool-floating {
    min-width: 50px;
    height: 50px;
    border: 2px solid transparent;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 5px;
    gap: 2px;
}

.pcv2-tool-floating i {
    font-size: 18px;
    color: #4054B2;
    line-height: 1;
}

.pcv2-tool-floating span {
    font-size: 9px;
    font-weight: 600;
    color: #7f8c8d;
    white-space: nowrap;
}

.pcv2-tool-floating.active {
    background: #4054B2;
    transform: scale(1.1);
}

.pcv2-tool-floating.active i,
.pcv2-tool-floating.active span {
    color: white;
}

.pcv2-toolbar-divider {
    width: 1px;
    height: 30px;
    background: #e0e6ed;
    margin: 0 5px;
}

/* Afficher la barre flottante sur tablette/mobile */
@media (max-width: 1024px) {
    .pcv2-toolbar {
        display: none !important;
    }
    
    .pcv2-toolbar-floating {
        display: block !important;
    }
    
    /* Réduire la marge du canvas pour la barre flottante */
    .pcv2-canvas {
        margin-bottom: 80px;
    }
}

/* Forcer sur iPad spécifiquement */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
    .pcv2-toolbar {
        display: none !important;
    }
    
    .pcv2-toolbar-floating {
        display: block !important;
    }
}

/* iPad Pro */
@media only screen 
and (min-device-width: 1024px) 
and (max-device-width: 1366px) 
and (-webkit-min-device-pixel-ratio: 2) {
    .pcv2-toolbar {
        display: none !important;
    }
    
    .pcv2-toolbar-floating {
        display: block !important;
    }
}

.pcv2-tool-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.tool-group-label {
    font-size: 11px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.pcv2-tool-group > div {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* Disposition horizontale des boutons dans le groupe */
.pcv2-tool-group > button.pcv2-tool {
    display: inline-flex;
    vertical-align: top;
}

.pcv2-tool {
    min-width: 70px;
    height: 55px;
    border: 2px solid #e0e6ed;
    background: white;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 5px;
    gap: 4px;
    overflow: hidden;
}

.pcv2-tool i {
    font-size: 20px;
    display: block;
    line-height: 1;
    color: #4054B2;
    transition: all 0.2s ease;
    pointer-events: none;
}

.pcv2-tool span {
    font-size: 10px;
    font-weight: 600;
    color: #7f8c8d;
    display: block;
    transition: all 0.2s ease;
    pointer-events: none;
}

.pcv2-tool:hover {
    background: linear-gradient(135deg, #4054B2, #162C5A);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(64, 84, 178, 0.3);
    border-color: #4054B2;
}

.pcv2-tool:hover i,
.pcv2-tool:hover span {
    color: white;
}

.pcv2-tool.active {
    background: linear-gradient(135deg, #4054B2, #162C5A);
    color: white;
    border-color: #4054B2;
    box-shadow: 0 4px 15px rgba(64, 84, 178, 0.25);
}

.pcv2-tool.active i,
.pcv2-tool.active span {
    color: white;
}

/* Canvas de design isolé */
.pcv2-canvas {
    position: relative;
    width: 100%;
    height: 500px;
    background: #fafafa;
    border: 2px solid #F2F2F7;
    border-radius: 10px;
    overflow: auto;
    background-image: 
        linear-gradient(rgba(64, 84, 178, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 84, 178, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pcv2-grid-cell {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(64, 84, 178, 0.05);
}

.pcv2-grid-cell:hover {
    background: rgba(64, 84, 178, 0.08);
}

/* Éléments du plan */
.pcv2-desk {
    position: absolute;
    background: #4054B2;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: move;
    z-index: 10;
}

.pcv2-desk-single {
    width: 40px;
    height: 40px;
}

.pcv2-desk-double {
    width: 80px;
    height: 40px;
}

.pcv2-teacher-desk {
    width: 120px;
    height: 40px;
    background: #CF0A0A;
}

.pcv2-board {
    width: 160px;
    height: 20px;
    background: #2c3e50;
    border-radius: 4px;
}

/* Placement des élèves - ANCIEN LAYOUT VERTICAL - COMMENTÉ */
/* .pcv2-placement-grid {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    max-height: 650px;
    align-items: flex-start;
    width: 100%;
} */

/* Pool d'élèves isolé */
.pcv2-students-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #F2F2F7;
    flex-shrink: 0;
    width: 280px;
}

.pcv2-students-list h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #162C5A;
}

.pcv2-student-item {
    background: white;
    border: 2px solid #F2F2F7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(64, 84, 178, 0.2);
    touch-action: manipulation;
}

.pcv2-student-item:hover {
    border-color: #4054B2;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(64, 84, 178, 0.15);
}

.pcv2-student-item:active {
    transform: scale(0.98);
    background: #e3f2fd;
    border-color: #4054B2;
}

.pcv2-student-item.selected {
    background: #e3f2fd;
    border-color: #4054B2;
}

.pcv2-student-item.dragging {
    opacity: 0.5;
}

.pcv2-student-name {
    font-weight: 500;
    color: #162C5A;
}

.pcv2-student-info {
    font-size: 0.85rem;
    color: #7d7d7d;
    margin-top: 2px;
}

/* Plan de classe */
.pcv2-classroom {
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    min-height: 500px;
    max-height: 600px;
    overflow: auto;
    border: 1px solid #F2F2F7;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcv2-seat {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #F2F2F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    text-align: center;
}

.pcv2-seat.occupied {
    background: #4054B2;
    color: white;
    border-color: #4054B2;
}

.pcv2-seat.drop-hover {
    border-color: #4054B2;
    border-style: dashed;
    background: rgba(64, 84, 178, 0.05);
}

/* Contraintes */
.pcv2-constraints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.pcv2-constraint-card {
    padding: 12px;
    border: 2px solid #F2F2F7;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcv2-constraint-card:hover {
    border-color: #4054B2;
    transform: translateY(-2px);
}

.pcv2-constraint-card.selected {
    background: #4054B2;
    color: white;
    border-color: #4054B2;
}

.pcv2-constraint-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Boutons d'action isolés */
.pcv2-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.pcv2-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcv2-btn-primary {
    background: #4054B2;
    color: white;
}

.pcv2-btn-primary:hover {
    background: #162C5A;
    transform: translateY(-1px);
}

.pcv2-btn-secondary {
    background: white;
    color: #4054B2;
    border: 2px solid #4054B2;
}

.pcv2-btn-secondary:hover {
    background: #4054B2;
    color: white;
}

.pcv2-btn-success {
    background: #ffd223;
    color: #162C5A;
}

.pcv2-btn-danger {
    background: #CF0A0A;
    color: white;
}

/* Zoom controls isolés */
.pcv2-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    background: white;
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 20;
}

.pcv2-zoom button {
    width: 32px;
    height: 32px;
    border: 1px solid #F2F2F7;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcv2-zoom button:hover {
    background: #F2F2F7;
}

/* Indicateur de contraintes isolé */
.pcv2-constraints-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    z-index: 30;
}

.pcv2-constraints-info.has-issues {
    border-left: 3px solid #CF0A0A;
}

/* Scrollbar personnalisée isolée */
.pcv2-students-list::-webkit-scrollbar,
.pcv2-canvas::-webkit-scrollbar {
    width: 6px;
}

.pcv2-students-list::-webkit-scrollbar-track,
.pcv2-canvas::-webkit-scrollbar-track {
    background: #F2F2F7;
    border-radius: 3px;
}

.pcv2-students-list::-webkit-scrollbar-thumb,
.pcv2-canvas::-webkit-scrollbar-thumb {
    background: #4054B2;
    border-radius: 3px;
}

/* Responsive isolé */
@media (max-width: 768px) {
    .pcv2-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    /* .pcv2-placement-grid {
        flex-direction: column;
    } */
    
    .pcv2-students-list {
        width: 100%;
        max-height: 200px;
    }
    
    .pcv2-toolbar {
        justify-content: center;
    }
}

/* Animations isolées */
@keyframes pcv2-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pcv2-section {
    animation: pcv2-fadeIn 0.4s ease-out;
}

/* Toast notifications isolées */
.pcv2-toast {
    position: fixed;
    top: 80px; /* Décalé pour éviter le header */
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 999999; /* Z-index très élevé pour passer au-dessus de tout */
    animation: pcv2-slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
}

@keyframes pcv2-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pcv2-toast-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 2px solid #28a745;
}

.pcv2-toast-error {
    background: linear-gradient(135deg, #dc3545, #CF0A0A);
    color: white;
    border: 2px solid #dc3545;
}

.pcv2-toast-info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    border: 2px solid #17a2b8;
}

/* Icône dans les toasts */
.pcv2-toast i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Mode sombre isolé (optionnel) */
[data-theme="dark"] .pcv2-wrapper {
    color: #e0e0e0;
}

[data-theme="dark"] .pcv2-section,
[data-theme="dark"] .pcv2-students-list,
[data-theme="dark"] .pcv2-classroom {
    background: #1e1e2e;
    border-color: #2a2a3e;
}

[data-theme="dark"] .pcv2-toolbar,
[data-theme="dark"] .pcv2-tool-group {
    background: #2a2a3e;
}

[data-theme="dark"] .pcv2-tool {
    background: #2a2a3e;
    color: #e0e0e0;
}

[data-theme="dark"] .pcv2-student-item {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #e0e0e0;
}

[data-theme="dark"] .pcv2-canvas {
    background: #16161e;
}

/* =====================================================
   CONTRÔLES DE ZOOM - PLACEMENT DES ÉLÈVES
   ===================================================== */

.zoom-controls {
    display: none !important; /* Complètement cachés pour maximiser l'espace */
}

.zoom-controls .btn {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.zoom-controls .btn:hover {
    transform: scale(1.05);
    background: #4054B2;
    color: white;
    border-color: #4054B2;
}

/* Layout de placement avec élèves en bas */
.pcv2-placement-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.pcv2-classroom-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
}

/* Plan de classe adaptatif */
#classroom-plan, .pcv2-classroom {
    width: 100%;
    overflow: auto; /* Permettre le scroll si nécessaire */
    padding: 10px; /* Réduit de 20px à 10px pour plus d'espace */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-height: 400px;
    max-height: 60vh; /* Réduit pour laisser de la place aux élèves */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Barres de défilement discrètes */
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 84, 178, 0.3) transparent;
}

/* Styles pour les barres de défilement Webkit (Chrome, Safari) */
#classroom-plan::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#classroom-plan::-webkit-scrollbar-track {
    background: transparent;
}

#classroom-plan::-webkit-scrollbar-thumb {
    background: rgba(64, 84, 178, 0.3);
    border-radius: 4px;
}

#classroom-plan::-webkit-scrollbar-thumb:hover {
    background: rgba(64, 84, 178, 0.5);
}

/* Conteneur avec overflow si nécessaire après zoom manuel */
#classroom-plan.zoomed {
    overflow: auto;
}

/* Grille de la salle auto-adaptative */
.classroom-grid-container {
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Cellules masquées complètement invisibles */
.hidden-cell {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* =====================================================
   LISTE HORIZONTALE DES ÉLÈVES
   ===================================================== */

.pcv2-students-horizontal {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-height: 200px;
}

.pcv2-students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.pcv2-students-pool-horizontal {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px;
    min-height: 100px;
    align-items: flex-start;
    /* Barres de défilement discrètes */
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 84, 178, 0.3) #f0f0f0;
}

.pcv2-students-pool-horizontal::-webkit-scrollbar {
    height: 8px;
}

.pcv2-students-pool-horizontal::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.pcv2-students-pool-horizontal::-webkit-scrollbar-thumb {
    background: rgba(64, 84, 178, 0.3);
    border-radius: 4px;
}

.pcv2-students-pool-horizontal::-webkit-scrollbar-thumb:hover {
    background: rgba(64, 84, 178, 0.5);
}

/* Cartes d'élèves horizontales */
.pcv2-student-card {
    flex-shrink: 0;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    width: 90px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
}

.pcv2-student-card:hover {
    background: #e3f2fd;
    border-color: #4054B2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 84, 178, 0.2);
}

.pcv2-student-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.pcv2-student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4054B2, #162C5A);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.pcv2-student-name {
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    color: #333;
    word-break: break-word;
    max-width: 100%;
}

.pcv2-student-name strong {
    font-size: 12px;
    color: #162C5A;
}

/* Indicateur de contraintes */
.constraints-indicator {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.constraints-indicator > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.constraints-indicator i {
    font-size: 18px;
}

/* Responsive pour tablettes */
@media (max-width: 1024px) {
    .zoom-controls {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        background: white;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        border: 2px solid #4054B2;
    }
    
    #classroom-plan, .pcv2-classroom {
        padding: 10px;
        min-height: 400px;
        max-height: 50vh;
    }
    
    .pcv2-students-horizontal {
        max-height: 180px;
    }
    
    .pcv2-student-card {
        width: 80px;
        height: 100px;
    }
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .zoom-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .zoom-controls .btn {
        padding: 10px;
        font-size: 16px;
    }
    
    #classroom-plan, .pcv2-classroom {
        min-height: 350px;
        max-height: 45vh;
        padding: 5px;
    }
    
    .pcv2-students-horizontal {
        max-height: 160px;
        padding: 10px;
    }
    
    .pcv2-student-card {
        width: 70px;
        height: 90px;
        padding: 8px;
    }
    
    .pcv2-student-avatar {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .pcv2-student-name {
        font-size: 10px;
    }
    
    .pcv2-student-name strong {
        font-size: 11px;
    }
    
    .pcv2-students-header h5 {
        font-size: 16px;
    }
}

[data-theme="dark"] .zoom-controls {
    background: #2a2a3e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] #classroom-plan {
    background: #1e1e2e;
    border-color: #2a2a3e;
}