@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

.properties-panel,
        .seating-properties-panel,
        #selectedProperties,
        #noSelection {
            display: none !important;
            visibility: hidden !important;
            width: 0 !important;
            opacity: 0 !important;
        }

        /* Adjust canvas to use full width */
        .seating-canvas-container {
            width: 100% !important; /* Full width - toolbar is above, not beside */
        }

        /* Enhanced pulsing purple glow for selection */
        @keyframes purplePulseGlow {
            0%, 100% { 
                stroke-width: 4px; 
                stroke-opacity: 0.9;
                filter: drop-shadow(0 0 10px #8b5cf6) drop-shadow(0 0 20px #8b5cf6);
            }
            50% { 
                stroke-width: 6px; 
                stroke-opacity: 1;
                filter: drop-shadow(0 0 15px #8b5cf6) drop-shadow(0 0 30px #8b5cf6);
            }
        }

        .furniture-selected rect,
        .furniture-selected circle,
        .furniture-selected ellipse,
        .furniture-selected polygon,
        .furniture-selected path {
            stroke: #8b5cf6 !important;  /* Purple */
            stroke-width: 4px;
            animation: purplePulseGlow 1.5s infinite;
        }
       
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Corner lock indicators */
        .corner-lock-indicator {
            fill: #ef4444;
            stroke: white;
            stroke-width: 2;
            filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6));
            animation: pulseLock 1s infinite;
            pointer-events: none;
        }

        @keyframes pulseLock {
            0%, 100% { 
                opacity: 0.8; 
                transform: scale(1); 
            }
            50% { 
                opacity: 1; 
                transform: scale(1.15); 
            }
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f5f5;
            min-height: 100vh;
            padding: 20px;
            color: #2d3748;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

/* ===== BASE BUTTON ===== */
.app-btn {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    white-space: normal;
    min-height: 38px;
    max-height: 76px;
}

/* ===== COLOR MODIFIERS ===== */

/* GREEN - Add/Create actions */
.app-btn-green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.app-btn-green:hover {
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.4);
    transform: translateY(-1px);
}

/* PURPLE - Primary actions, Group Mode */
.app-btn-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.app-btn-purple:hover {
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

/* PINK - Secondary important actions */
.app-btn-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
}

.app-btn-pink:hover {
    box-shadow: 0 4px 8px rgba(240, 147, 251, 0.4);
    transform: translateY(-1px);
}

/* RED - Delete/Clear/Danger actions */
.app-btn-red {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.app-btn-red:hover {
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* BLUE - Info/Load/Navigation actions */
.app-btn-blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.app-btn-blue:hover {
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.4);
    transform: translateY(-1px);
}

/* GRAY - Subtle/Secondary actions */
.app-btn-gray {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.app-btn-gray:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.app-btn-universal-gradient {
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-btn-universal-gradient:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* ===== SIZE MODIFIERS ===== */

/* ===== SIZE MODIFIERS ===== */

.app-btn-sm {
    padding: 7px 9px;        /* 75% of 10px 12px */
    font-size: 11px;          /* 75% of 14px */
    min-height: 29px;         /* 75% of 38px */
    border-radius: 6px;       /* Slightly smaller radius */
}

.app-btn-lg {
    padding: 15px 18px;       /* 150% of 10px 12px */
    font-size: 21px;          /* 150% of 14px */
    font-weight: 600;
    min-height: 57px;         /* 150% of 38px */
    border-radius: 12px;      /* Larger radius */
}

.app-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-btn-icon:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* ===== WIDTH MODIFIERS ===== */

.app-btn-auto {
    width: auto;
}

.app-btn-inline {
    width: auto;
    display: inline-block;
    margin-right: 8px;
}

.app-btn-wrap {
    white-space: normal;  /* Allow wrapping */
    min-height: 38px;     /* Minimum single-line height */
    max-height: 76px;     /* Maximum 2-line height (38px * 2) */
    line-height: 1.4;     /* Comfortable line spacing */
    padding-top: 8px;     /* Adjust vertical padding for wrapped text */
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===== STATE MODIFIERS ===== */

.app-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-btn-active {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.app-btn-red-light {
    background: #fca5a5;
    color: white;
    box-shadow: 0 2px 4px rgba(252, 165, 165, 0.3);
}

.app-btn-red-light:hover {
    background: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.app-btn-red-intense {
    background: #dc2626;
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
}

.app-btn-red-intense:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.5);
}

        /* HEADER — Mockup 4: transparent, floats on gradient body */
        .header {
            padding: 20px 28px;
            margin-bottom: 30px;
        }

        /* Frosted-glass logo frame */
        .header-logo-frame {
            width: 72px;
            height: 72px;
            background: rgba(255, 255, 255, 0.18);
            border: 2px solid rgba(255, 255, 255, 0.45);
            border-radius: 18px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .header-logo-frame:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
        }

        /* Wordmark — sized so two lines fill the 72px logo frame height */
        .header-wordmark {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.85rem;
            font-weight: 500;
            line-height: 1.18;
            color: white;
            letter-spacing: -0.01em;
            text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
        }

        /* Frosted nav pill — explicit 72px height to match logo frame, buttons centered */
        .header-nav-pill {
            background: rgba(255, 255, 255, 0.15);
            border: 1.5px solid rgba(255, 255, 255, 0.3);
            border-radius: 16px;
            padding: 6px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            height: 72px;
            box-sizing: border-box;
        }
        .seating-active .header {
            display: none;
        }
        
        /* When in seating mode, reduce body padding to maximize space */
        body.seating-active {
            padding: 8px !important;
        }
        
        /* When in seating mode, allow container to grow beyond 1200px if needed */
        .seating-active .container {
            max-width: 1200px !important;
        }
        
        /* Make main-content invisible wrapper in seating mode */
        .seating-active .main-content {
            background: transparent !important;
            backdrop-filter: none !important;
            border-radius: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
        }
        
        /* Make seating-container use full available width */
        .seating-active .seating-container {
            max-width: 1200px !important;    /* Use full screen width - no artificial limit */
            width: 100% !important;        /* Use available width up to max-width */
            margin: 0 auto !important;
        }

        /* Header Logo Styling */
        #headerLogoContainer {
            transition: all 0.3s ease;
        }

        #headerLogoContainer:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        #headerLogo {
            transition: all 0.3s ease;
        }

        /* MAIN CONTENT AREA */
        .main-content {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            min-height: 60vh;
        }

        /* BOTTOM NAVIGATION */
        .bottom-nav {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 10px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            display: flex;
            gap: 8px;
            max-width: 90vw;
            overflow-x: auto;
            margin: 30px auto 0 auto;  /* This centers it */
            justify-content: center;
            width: fit-content;  /* This makes it only as wide as needed */
        }

        .nav-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 12px;
            background: white;
            color: #718096;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            min-width: 80px;
            font-size: 0.95rem;
        }

        .nav-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .nav-btn:hover:not(.active) {
            background: #f7fafc;
            color: #4a5568;
        }

        /* PAGE SECTIONS */
        .page-section {
            display: none;
        }

        .page-section.active {
            display: block;
        }

        .section-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title::before {
            content: '';
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }

        /* CLASS SELECTOR */
        .class-selector {
            margin-bottom: 30px;
        }

        .class-dropdown select {
            width: 100%;
            max-width: 400px;
            padding: 18px 20px;
            border: 3px solid #e2e8f0;
            border-radius: 16px;
            font-size: 1.2rem;
            background: white;
            transition: all 0.3s ease;
            cursor: pointer;
            font-weight: 500;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 12px center;
            background-repeat: no-repeat;
            background-size: 16px;
        }

        .class-dropdown select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        /* MAIN ACTIONS */
        .main-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .action-card {
            background: #f7fafc;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            padding: 30px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .action-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            border-color: rgba(102, 126, 234, 0.2);
        }

        .action-card h3 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #2d3748;
        }

        .action-card p {
            color: #718096;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .action-btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .quick-groups .action-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .seating-groups .action-btn {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .teacher-controls .action-btn {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .action-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

/* ROSTER MANAGEMENT PAGE */
.roster-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.roster-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.roster-page-header h1 {
    margin: 0;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;
}

.roster-add-class-btn {
    padding: 12px 24px !important;
    font-size: 1rem !important;
    width: auto !important;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.roster-save-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.roster-save-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roster-save-bar-text {
    font-weight: 600;
    color: #92400e;
}

.roster-save-bar-actions {
    display: flex;
    gap: 10px;
}

.roster-discard-btn {
    background: white;
    border: 2px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.roster-discard-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.roster-save-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.roster-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.class-accordion-row {
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
}

.class-accordion-row:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.class-accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.class-accordion-header.expanded {
    background: #f7fafc;
}

.class-accordion-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.class-accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.class-accordion-info h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
}

.class-accordion-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #718096;
}

.class-accordion-meta-warning {
    color: #f59e0b;
}

.class-accordion-hint {
    font-size: 0.85rem;
    color: #9ca3af;
}

.class-accordion-content {
    padding: 20px;
    background: white;
    border-top: 2px solid #e2e8f0;
}

.roster-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.roster-action-btn-primary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.roster-action-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.roster-action-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.roster-action-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.roster-action-btn-danger {
    background: white;
    color: #dc2626;
    border: 2px solid #fecaca;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.roster-action-btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.roster-add-students-section {
    margin-bottom: 20px;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
}

.roster-add-students-section h4 {
    margin: 0 0 15px 0;
    color: #0c4a6e;
    font-weight: 600;
}

.roster-name-input-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roster-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.roster-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.roster-pools-container {
    display: flex;
    gap: 20px;
}

.student-pool {
    flex: 1;
    min-height: 200px;
    background: #f7fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.student-pool.drag-over {
    background: #eff6ff;
    border-color: #3b82f6;
}

.student-pool h4 {
    margin: 0 0 15px 0;
    color: #718096;
    font-weight: 600;
}

.student-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-chips-container p {
    color: #9ca3af;
    margin: 0;
}

.removal-pool {
    width: 200px;
    min-height: 200px;
    background: #fef2f2;
    border: 2px dashed #fca5a5;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s ease;
}

.removal-pool.drag-over {
    background: #fee2e2;
    border-color: #ef4444;
}

.removal-pool h4 {
    margin: 0 0 10px 0;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 600;
}

.removal-pool p {
    color: #991b1b;
    font-size: 0.8rem;
    margin: 0;
}

.roster-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f7fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.roster-empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.roster-empty-state h3 {
    color: #718096;
    margin: 0 0 10px 0;
}

.roster-empty-state p {
    color: #9ca3af;
    margin: 0 0 20px 0;
}

/* QUICK GROUPS PAGE IMPROVEMENTS */
.grouping-controls-container {
    margin-bottom: 30px;
}

.class-selection-row {
    margin-bottom: 20px;
}

.class-selection-row .class-dropdown select {
    width: 100%;
    max-width: 400px;
    padding: 18px 20px;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.2rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.controls-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.control-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.slider-container {
    text-align: center;
}

.slider-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.1rem;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 15px;
    cursor: pointer;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.slider-value {
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

.group-info-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-align: center;
}

.info-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-content {
    font-weight: 500;
    line-height: 1.4;
    white-space: pre-line;
}

.advanced-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.advanced-toggle-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.advanced-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.advanced-options {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin-top: 10px;
}

.advanced-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advanced-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-weight: 500;
}

/* SLOT MACHINE LOADING ANIMATION */
.slot-machine-container {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #f7fafc;
    border-radius: 16px;
    margin: 30px 0;
}

.slot-machine-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 20px;
}

.slot-cards {
    display: grid;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Responsive grid: 4 cards horizontal on desktop, 2x2 on mobile */
@media (min-width: 768px) {
    .slot-cards {
        grid-template-columns: repeat(4, 1fr);
        max-width: 400px;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 767px) {
    .slot-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
        margin: 0 auto 20px auto;
    }
}

.slot-card {
    width: 80px;
    height: 100px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.slot-card.visible {
    opacity: 1;
    transform: scale(1);
}

.slot-card.flipping {
    transform: rotateY(90deg);
}

.slot-emoji {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.slot-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
    line-height: 1.1;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-progress {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.main-controls-grid .control-item.group-info-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.main-controls-grid .group-info-card .info-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: white;
}

.main-controls-grid .group-info-card .info-content {
    font-weight: 500;
    line-height: 1.4;
    white-space: pre-line;
    color: white;
    font-size: 0.95rem;
}/* MAIN CONTROLS GRID - RESPONSIVE 4-ITEM LAYOUT */
.main-controls-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    grid-template-columns: repeat(4, 1fr);
}

/* Mobile: 2x2 grid */
@media (max-width: 767px) {
    .main-controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-controls-grid .control-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.main-controls-grid .control-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.1rem;
}

.main-controls-grid .control-item select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    font-weight: 500;
}

.main-controls-grid .control-item input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 15px;
    cursor: pointer;
    -webkit-appearance: none;
}

.main-controls-grid .control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* SUBTLE ADVANCED CONTROLS */
/* ADVANCED CONTROLS ON SAME LINE */
.advanced-controls-section {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
    gap: 30px;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Allow horizontal scroll if needed */
    padding: 10px 0;
}

.advanced-toggle-btn-subtle {
    background: #f7fafc;
    color: #718096;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.advanced-toggle-btn-subtle:hover {
    background: #edf2f7;
    color: #4a5568;
    border-color: #cbd5e0;
}

.advanced-options {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap; /* Prevent wrapping */
    flex-shrink: 0;
}

/* PILL SLIDERS */
/* Advanced Smart Assignment Modal - Algorithm Controls Grid */
.algo-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.algo-control-group {
    display: flex;
    flex-direction: column;
}

.algo-control-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Segmented Controls (iOS-style) */
.segmented-control {
    display: flex;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.segment-option {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #4a5568;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.segment-option:hover {
    background: rgba(255, 255, 255, 0.5);
}

.segment-option.active {
    background: white;
    color: #2d3748;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pill-sliders-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping to second row */
}

.pill-slider-item {
    text-align: center;
    position: relative;
    height: 60px;
}

.pill-slider-item label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
    white-space: nowrap;
}

.pill-slider {
    position: relative;
    width: 140px;
    height: 28px;
    margin: 15px auto;
    cursor: pointer;
}

.pill-slider-track {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.pill-slider-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 66px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pill-slider.active .pill-slider-thumb {
    transform: translateX(70px);
}

.pill-labels span:first-child {
    position: absolute;
    top: -18px; /* Above the pill */
    left: 10px;
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pill-labels span:last-child {
    position: absolute;
    bottom: -18px; /* Below the pill */
    right: 10px;
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pill-slider:not(.active) .pill-labels span:first-child {
    color: #2d3748;
    font-weight: 700;
}

.pill-slider.active .pill-labels span:last-child {
    color: #2d3748;
    font-weight: 700;
}

/* Make sure inactive labels are not bold */
.pill-slider.active .pill-labels span:first-child {
    color: #718096;
    font-weight: 500;
}

.pill-slider:not(.active) .pill-labels span:last-child {
    color: #718096;
    font-weight: 500;
}

/* Disabled sliders when algorithm is "fully random" */
.pill-slider.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pill-slider.disabled .pill-slider-thumb {
    background: #cbd5e0;
    box-shadow: none;
}

/* 3-Position History Slider - matches 2-pos vertical alignment */
.pill-slider-3pos {
    position: relative;
    width: 180px;
    height: 28px;
    margin: 15px auto;
    cursor: pointer;
}

.pill-slider-track-3pos {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.pill-slider-thumb-3pos {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 56px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

/* Thumb positions for left / center / right */
.pill-slider-3pos.pos-left .pill-slider-thumb-3pos {
    transform: translateX(0);
}

.pill-slider-3pos.pos-center .pill-slider-thumb-3pos {
    transform: translateX(62px);
}

.pill-slider-3pos.pos-right .pill-slider-thumb-3pos {
    transform: translateX(122px);
}

/* Individual label positions */
.pill-slider-3pos span {
    position: absolute;
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pill-slider-3pos span.pos-left {
    top: -18px;
    left: 10px;
}

.pill-slider-3pos span.pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure it's behind the thumb when inactive */
}

.pill-slider-3pos span.pos-right {
    bottom: -18px;
    right: 10px;
}

/* Active state for labels */
.pill-slider-3pos.pos-left span.pos-left,
.pill-slider-3pos.pos-center span.pos-center,
.pill-slider-3pos.pos-right span.pos-right {
    color: #2d3748;
    font-weight: 700;
}

/* Special styling for the active center label */
.pill-slider-3pos.pos-center span.pos-center {
    color: white; /* Change font to white */
    z-index: 3; /* Raise above the thumb */
}

/* Disabled slider */
.pill-slider-3pos.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pill-slider-3pos.disabled .pill-slider-thumb-3pos {
    background: #cbd5e0;
    box-shadow: none;
}


/* BUTTON STYLES */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* STUDENT LOADING MESSAGE */
.student-loading-message {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* ZERO STUDENTS MESSAGE */
.zero-students-message {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 16px;
    text-align: center;
    padding: 40px;
    margin-bottom: 20px;
}

.mode-toast {
    position: fixed; /* For notification toasts */
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    min-width: 400px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mode-toast.with-warning {
    padding-bottom: 40px; /* Make room for warning */
}

.mode-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-toast-title {
    font-weight: 600;
    font-size: 14px;
}

.mode-toast-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.mode-toast-warning {
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    background: rgba(251, 191, 36, 0.2);
    border-left: 3px solid #fbbf24;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-toast-cancel {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.mode-toast-cancel:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}



/* ===== BASE TOAST COMPONENT STYLES ===== */
/* FIX 4: Base styles for toast components */

.toast-tab {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    min-height: 48px;
}

.toast-tab:hover {
    background: linear-gradient(135deg, #5a6678 0%, #3d4758 100%);
}

.toast-icon {
    font-size: 18px;
}

.toast-title {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.toast-badge {
    background: #e2e8f0;  /* Was: rgba(255, 255, 255, 0.25) - Made opaque */
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.toast-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.toast-clear-btn {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.toast-clear-btn:hover {
    background: rgba(255, 255, 255, 0.45);
}

.dockable-toast.collapsed .toast-arrow {
    transform: rotate(-90deg);
}

.toast-content {
    background: rgb(247, 250, 252);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    padding: 6px;
}

.toast-grabber {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    cursor: move;
    padding: 4px;
    z-index: 10;
}

.grabber-handle {
    width: 32px;
    height: 4px;
    background: #cbd5e0;  /* Was: rgba(255, 255, 255, 0.4) - Made opaque */
    border-radius: 2px;
}

.grabber-handle:hover {
    background: #e2e8f0;  /* Was: rgba(255, 255, 255, 0.6) - Made opaque */
}

/* Selected Shapes Toast Container - matches unassigned students style */
.shapes-toast-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #f7fafc;  /* Light background like unassigned toast */
    border-radius: 0 0 12px 12px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.shapes-toast-container .furniture-drag-tile {
    width: 80px;
    height: 90px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px 4px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
    gap: 4px;
}

/* Unassigned student chips - neutral gray styling to match quick groups */
#unassignedStudentsContainer .student-chip {
    background: #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: grab;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#unassignedStudentsContainer .student-chip:hover {
    background: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

#unassignedStudentsContainer .student-chip:active {
    cursor: grabbing;
}

/* Unassigned Students Pool - Flex wrap layout like Quick Groups */
.toast-student-chips,
#unassignedStudentsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 0 0 12px 12px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    align-items: flex-start;
    align-content: flex-start;
}

/* When empty, make the container much smaller */
#unassignedStudentsContainer:empty {
    min-height: 40px;
    padding: 10px;
}

/* Alternative: when it has the 'empty' class */
#unassignedStudentsContainer.empty {
    min-height: 40px;
    padding: 10px;
}

#furnitureSelectionToast {
    flex: 1 1 360px !important;
}

#furnitureSelectionToast.collapsed {
    flex: 0 0 180px !important;
    max-width: 180px;
}

/* Make unassigned students toast wider to accommodate multiple chips per row */
#unassignedStudentsToast {
    flex: 1 1 360px !important;
    max-width: 450px !important;
}

#unassignedStudentsToast.collapsed {
    flex: 0 0 180px !important;
    max-width: 180px;
}

.shapes-toast-container .furniture-drag-tile:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.shapes-toast-container .furniture-drag-tile:active {
    cursor: grabbing;
}

.shapes-toast-container .drag-tile-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.shapes-toast-container .drag-tile-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.shapes-toast-container .drag-tile-preview {
    width: 56px;
    height: 56px;
    pointer-events: none;
    flex-shrink: 0;
}

.shapes-toast-container .drag-tile-label {
    font-size: 10px;
    color: #4a5568;
    text-align: center;
    pointer-events: none;
    line-height: 1.2;
    font-weight: 500;
    flex-shrink: 0;
}

/* ===== TOAST DOCKING CONTAINER ===== */
#toastDockingContainer {
    /* ARCHITECTURAL FIX: Now positioned relative to .seating-canvas-container */
    position: absolute; /* Relative to parent container */
    /* Position will be calculated dynamically via JavaScript */
    z-index: 950;
    background: #f5f7f9; /* 90% washed out version of header gray-blue */
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 6px;
    min-height: 48px;
    overflow: visible;
    /* No transition - immediate positioning */
}

/* ===== TOAST GRABBER CONTROLS ===== */
.toast-grabber-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0; /* No height, just a positioning container */
    pointer-events: none; /* Don't block anything */
    z-index: 1000; /* Above toast but below modals */
}

.toast-move-handle {
    position: absolute;
    top: 0; /* At top edge of toast */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px 8px 0 0;
    cursor: move;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-move-handle:hover {
    opacity: 1;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.toast-move-handle::after {
    content: '⋮⋮';
    color: white;
    font-size: 10px;
    letter-spacing: 2px;
}



/* SIMPLIFIED: When toast is collapsed, it stays in the docking container */
/* FIX 2 & 5: Dockable toast positioning - controlled by JS, not CSS */
.dockable-toast {
    position: absolute !important; /* Override any other positioning */
    transform: none !important; /* Override .mode-toast if accidentally applied */
    animation: none !important; /* Override .mode-toast animation */
    flex: 1 1 300px; /* Flex sizing: grow, shrink, basis 300px */
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Collapsed toasts are narrower */
.dockable-toast.collapsed {
    flex: 0 0 120px; /* No grow, no shrink, fixed 250px when collapsed */
    max-width: 120px;
}


.dockable-toast.collapsed {
    /* Position controlled by JavaScript via inline styles */
    flex-shrink: 0;
    cursor: move;
}

/* Collapsed toast only shows the tab, content is hidden */
.dockable-toast.collapsed .toast-content {
    display: none !important;
}

/* Expanded toast positioning */
.dockable-toast:not(.collapsed) {
    /* Position controlled by JavaScript via inline styles */
    z-index: 960;
}

/* Docked toast slots */
.docked-toast-slot {
    flex: 1;
    min-width: 0; /* Allow flex items to shrink */
    cursor: pointer;
    transition: all 0.2s ease;
}

.docked-toast-slot:hover {
    transform: translateY(-2px);
}

/* Docked toast content (just the collapsed tab) */
.docked-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.2s ease;
}

.docked-toast-content:hover {
    border-color: #cbd5e0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.docked-toast-icon {
    font-size: 16px;
}

.docked-toast-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docked-toast-badge {
    background: #e2e8f0;  /* Was: rgba(0, 0, 0, 0.1) - Made opaque */
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

        /* FORM STYLES */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: #2d3748;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        /* STUDENT PREVIEW */
        .student-preview {
            background: #f7fafc;
            border-radius: 12px;
            padding: 20px;
            margin-top: 15px;
        }

        .student-preview h4 {
            color: #2d3748;
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .student-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .student-tag {
            background: #e6fffa;
            color: #234e52;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 0.85rem;
            border: 1px solid #81e6d9;
        }

        .student-tag.duplicate {
            background: #fed7d7;
            color: #742a2a;
            border-color: #fc8181;
        }

        /* BUTTONS */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 120px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-secondary {
            background: #e2e8f0;
            color: #4a5568;
        }

        .btn-secondary:hover {
            background: #cbd5e0;
        }

        .btn-success {
            background: #48bb78;
            color: white;
        }

        .btn-success:hover {
            background: #38a169;
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        /* LOADING STATE */
        .loading {
            text-align: center;
            padding: 40px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #e2e8f0;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* GROUPING INTERFACE */
        .grouping-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }

        .grouping-controls {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .slider-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 120px;
        }

        .slider-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 8px;
        }

        .slider {
            width: 100px;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            -webkit-appearance: none;
            cursor: pointer;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .slider-value {
            font-size: 0.85rem;
            color: #718096;
            margin-top: 4px;
        }

        .groups-info {
            background: #f7fafc;
            padding: 15px 20px;
            border-radius: 12px;
            border-left: 4px solid #667eea;
        }

        .groups-info h3 {
            color: #2d3748;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .groups-info p {
            color: #718096;
            font-size: 0.9rem;
        }

        .groups-display-top {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.groups-display-top .section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.groups-display-top .section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}



/* Remove grid adjustments that are causing buttons to touch */
.students-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 30px !important;
}

/* Ensure student buttons have proper styling */
.student-button {
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.2) !important;
    width: auto !important;
    min-width: auto !important;
    min-height: auto !important;
}

.student-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3) !important;
}

.student-button.absent {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.2) !important;
}

.student-button.absent:hover {
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3) !important;
}

.student-chip:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.group-card.drag-over {
    background-color: rgba(102, 126, 234, 0.1) !important;
    border-color: #667eea !important;
}

        /* GROUPS DISPLAY */
        .groups-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .group-card {
            background: #f7fafc;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .group-card:hover {
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
        }

        .group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .group-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2d3748;
        }

        .group-size {
            background: #667eea;
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .group-members {
            space-y: 8px;
        }

        .group-member {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: white;
            border-radius: 8px;
            margin-bottom: 8px;
        }

        .member-name {
            font-weight: 500;
            color: #2d3748;
        }

        /* RESPONSIVE DESIGN */
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .main-actions {
                grid-template-columns: 1fr;
            }
            
            .students-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .grouping-header {
                flex-direction: column;
                align-items: stretch;
            }
            
            .grouping-controls {
                justify-content: center;
                flex-wrap: wrap;
            }
        }

/* 5. FULL SCREEN SLOT MACHINE STYLES */
.slot-machine-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.slot-machine-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.slot-cards-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    width: 100%;
}

.slot-card-large {
    width: 140px;
    height: 180px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.slot-card-large.visible {
    opacity: 1;
    transform: scale(1);
}

.slot-card-large.flipping {
    transform: rotateY(90deg);
}

.slot-emoji-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

.slot-name-large {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
    line-height: 1.1;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-progress-large {
    color: white;
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .slot-cards-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 400px;
    }
    
    .slot-card-large {
        width: 140px;
        height: 180px;
    }
    
    .slot-emoji-large {
        font-size: 3rem;
    }
    
    .slot-name-large {
        font-size: 1rem;
    }
}

.bottom-nav-in-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bottom-nav-in-header .nav-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 12px 26px;
    border-radius: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.035rem;
    white-space: nowrap;
}

.bottom-nav-in-header .nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    transform: none;
}

.bottom-nav-in-header .nav-btn.active {
    background: rgba(255, 255, 255, 0.92);
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Hide the original bottom navigation */
.bottom-nav {
    display: none;
}

/* Make header responsive */
@media (max-width: 768px) {
    .header > div {
        flex-direction: column !important;
        gap: 16px;
    }
    
    .bottom-nav-in-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bottom-nav-in-header .nav-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

        /* UTILITY CLASSES */
        .hidden {
            display: none !important;
        }

        .text-center {
            text-align: center;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .mt-30 {
            margin-top: 30px;
        }

               .seating-container {
            max-width: 100%; /* Use full width - no artificial limit */
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            position: relative; /* Added for absolute positioning of children */
        }
         
/* Furniture Selection Toast */
/* UPDATED: Removed yellow styling - now uses standard .dockable-toast styles */
/* The container styles have been removed - toast now inherits from .dockable-toast */
/* Only keeping custom button styling below */

#furnitureSelectionToast button {
    height: 36px;
    min-width: 36px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

#furnitureSelectionToast button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

#furnitureSelectionToast button:active {
    transform: translateY(0);
}

#furnitureSelectionToast button.copy-btn {
    background: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

#furnitureSelectionToast button.copy-btn:hover {
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

#furnitureSelectionToast button.delete-btn {
    background: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

#furnitureSelectionToast button.delete-btn:hover {
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}
        /* Toolbar */


        @keyframes pulse-red {
            0% { box-shadow: 0 0 8px rgba(229, 62, 62, 0.4); }

        @keyframes border-flash-red {
            0%, 100% { border-color: #e2e8f0; }
            25%, 75% { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3); }
            50% { border-color: #dc2626; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.4); }
        }
            50% { box-shadow: 0 0 12px rgba(229, 62, 62, 0.6); }
            100% { box-shadow: 0 0 8px rgba(229, 62, 62, 0.4); }
        }
        
        /* Main content area */
        .seating-content {
            display: flex;
            height: 780px; /* Increased from 600px to accommodate 720px canvas + padding */
        }

        .shapes-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            max-height: 300px;
            overflow-y: auto;
            margin-top: 4px;
        }

        .dropdown-option {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s ease;
            border-bottom: 1px solid #f7fafc;
        }

        .dropdown-option:last-child {
            border-bottom: none;
        }

        .dropdown-option:hover {
            background: #f7fafc;
        }

        .dropdown-option-preview {
            width: 32px;
            height: 24px;
            margin-right: 12px;
            flex-shrink: 0;
        }

        .dropdown-option-label {
            font-size: 0.9rem;
            color: #2d3748;
            font-weight: 500;
        }

        .shape-palette-container {
            position: relative;
        }

        .shapes-dropdown-container {
            position: relative;
            margin-bottom: 20px;
        }



        @keyframes purplePulseGlow {
            0%, 100% { 
                stroke-width: 4px; 
                stroke-opacity: 0.9;
                filter: drop-shadow(0 0 10px #8b5cf6) drop-shadow(0 0 20px #8b5cf6);
            }
            50% { 
                stroke-width: 6px; 
                stroke-opacity: 1;
                filter: drop-shadow(0 0 15px #8b5cf6) drop-shadow(0 0 30px #8b5cf6);
            }
        }

        .furniture-selected rect,
        .furniture-selected circle,
        .furniture-selected ellipse,
        .furniture-selected polygon,
        .furniture-selected path {
            stroke: #8b5cf6 !important;  /* Purple */
            stroke-width: 4px;
            animation: purplePulseGlow 1.5s infinite;
        }

        /* Make handles larger and more prominent when using glow selection */
        .glow-selection-mode .seating-resize-handle,
        .glow-selection-mode .seating-aspect-handle {
            r: 8 !important;  /* Larger radius for circles */
            stroke-width: 3px !important;
            filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
        }

        .glow-selection-mode .seating-resize-handle[data-handle="font-size"] {
            width: 12px !important;
            height: 12px !important;
        }

        /* Remove the old dashed boundary box completely */
        .glow-selection-mode #selectionGroup > rect {
            display: none !important;
        }

        .seating-shape-palette {
            width: 200px;
            background: #f7fafc;
            padding: 20px;
            border-right: 2px solid #e2e8f0;
            overflow-y: auto;
            max-height: 780px;
        }
        
        .seating-palette-title {
            font-size: 0.85rem;
            text-transform: uppercase;
            color: #718096;
            margin-bottom: 15px;
            font-weight: 600;
        }
        



.seating-mode-toolbar {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    min-height: 80px;
  }

  /* Room Section */
  .toolbar-room-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
  }


  .room-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
  }

/* ============================================================================
   STANDARD MODAL SYSTEM - CSS
   ============================================================================
*/

/* Animations */
@keyframes std-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes std-fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Base Overlay */
.std-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Base Modal Box */
.std-modal {
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: std-slideIn 0.3s ease;
    overflow: hidden;
}

/* Modal Header */
.std-modal-header {
    padding: 30px 40px 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f0f0f0;
}

.std-modal-title-section {
    flex: 1;
}

.std-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.std-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.std-modal-subtitle {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.std-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: #f7fafc;
    color: #718096;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 20px;
}

.std-modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Modal Body */
.std-modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.std-modal-message {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Modal Footer */
.std-modal-footer {
    padding: 20px 40px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #fafafa;
}

/* Standard Buttons */
.std-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.std-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.std-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button (Green) */
.std-btn-primary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.std-btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.4);
}

/* Danger Button (Red) */
.std-btn-danger {
    background: #f7fafc;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.std-btn-danger:hover:not(:disabled) {
    background: #fee;
}

/* Secondary Button (Gray) */
.std-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid #cbd5e0;
}

.std-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

/* Input Field */
.std-modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.std-modal-input:focus {
    outline: none;
    border-color: #4299e1;
}

.std-modal-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 8px;
}

/* ============================================================================
   ROOM SELECTION MODAL - Specialized Styles
   ============================================================================ */

.std-room-section {
    margin-bottom: 20px;
}

.std-room-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
}

.std-room-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
}

.std-room-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.std-room-item:last-child {
    border-bottom: none;
}

.std-room-item:hover {
    background: #f7fafc;
}

.std-room-item.selected {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding-left: 12px;
}

.std-room-item-name {
    font-weight: 500;
    color: #2d3748;
}

.std-room-item-count {
    font-size: 0.85rem;
    color: #718096;
    background: #edf2f7;
    padding: 3px 10px;
    border-radius: 12px;
}

.std-room-loading,
.std-room-empty,
.std-room-error {
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

.std-room-error {
    color: #e53e3e;
}

.std-room-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    height: 1px;
    background: #e2e8f0;
}

.std-room-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
}

.std-room-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

.std-room-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.std-room-input::placeholder {
    color: #cbd5e0;
}

/* Scrollbar styling for room list */
.std-room-list::-webkit-scrollbar {
    width: 8px;
}

.std-room-list::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.std-room-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.std-room-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .std-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .std-modal-header,
    .std-modal-body,
    .std-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .std-modal-icon {
        font-size: 2.5rem;
    }
    
    .std-modal-title {
        font-size: 1.25rem;
    }
    
    .std-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Updated Room Button in Toolbar */
.room-button {
  padding: 6px 12px;
  background: white;
  border: 2px solid #4299e1;
  border-radius: 6px;
  color: #2b6cb0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.room-button:hover {
  background: #ebf8ff;
}

.room-button-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.room-button-text {
    font-size: 13px;
    text-align: right;
}

/* Loading State */
.room-loading {
  text-align: center;
  padding: 20px;
  color: #718096;
}

.room-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #4299e1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
}

/* Mode toggle buttons - single unified stack */
.mode-toggle-btn {
    width: 80px;
    height: 28px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #cbd5e0;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0; /* Remove default radius */
}

/* First button - round top corners only */
.mode-toggle-btn[data-mode="furniture"] {
    border-radius: 8px 8px 0 0;
    border-bottom-width: 1px; /* Thinner border between buttons */
}

/* Middle button - no rounded corners */
.mode-toggle-btn[data-mode="seats"] {
    border-top-width: 0;
    border-bottom-width: 1px;
}

/* Last button - round bottom corners only */
.mode-toggle-btn[data-mode="assign"] {
    border-radius: 0 0 8px 8px;
    border-top-width: 0;
}

/* NEW MODE BUTTONS - 2 button layout */
.mode-toggle-btn[data-mode="classroom"] {
    border-radius: 8px 8px 0 0;
    border-bottom-width: 1px;
}

.mode-toggle-btn[data-mode="students"] {
    border-radius: 0 0 8px 8px;
    border-top-width: 0;
}

/* Active state uses universal theme color */
.mode-toggle-btn.active {
    /* Background will be set via JS using currentThemeGradient.css */
    color: white;
    border-color: transparent;
    z-index: 1;
}

/* Hover state for inactive buttons */
.mode-toggle-btn:not(.active):hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

/* Room button border uses theme color */
.room-button {
    /* Border will be set via JS */
    font-size: 13px;
    font-weight: 600;
}

/* Load button standardization */
.load-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    height: 84px; /* Match other columns */
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    /* Background will be set via JS using currentThemeGradient.css */
}

.load-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.load-btn-icon {
    font-size: 16px;
}

/* File row states */
.file-row.inactive {
    opacity: 0.5;
    pointer-events: none;
}

.file-row.inactive .file-name,
.file-row.inactive .file-save-btn,
.file-row.inactive .file-saveas-btn,
.file-row.inactive .file-publish-btn {
    cursor: not-allowed;
}

.file-name.unsaved {
    font-style: italic;
    color: #718096;
}

/* Reuse existing pulse animation for save buttons */
.file-save-btn.pulse,
.file-saveas-btn.pulse,
.file-publish-btn.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* File Management Section base styles */
.file-management-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
    transition: opacity 0.3s ease;
}

.file-label {
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
    min-width: 50px;
}

.file-name {
    flex: 1;
    padding: 2px 6px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 11px;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.file-name.empty {
    color: #a0aec0;
    font-style: italic;
}

.file-save-btn,
.file-saveas-btn,
.file-publish-btn {
    padding: 2px 8px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.file-save-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.file-save-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.file-save-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.file-saveas-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.file-saveas-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.file-saveas-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.file-publish-btn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.file-publish-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
}

.file-publish-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Load section */
.load-section {
    padding: 8px;
    display: flex;
    justify-content: center;
}

.load-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.load-btn-icon {
    font-size: 14px;
}

  /* Controls Section */
  .controls-section {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .controls-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .control-btn {
    padding: 4px 10px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .control-btn:hover:not(:disabled) {
    background: #e9ecef;
  }

  .control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .slider-container {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .slider-icon {
    font-size: 14px;
    color: #6c757d;
  }

  .control-slider {
    width: 80px;
  }
        
/* Modal Overlay */
  .layout-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.2s ease;
  }

  .layout-loader-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
  }

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

  /* Modal Container */
  .layout-loader-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: absolute;
    top: 40px;
  }

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

  /* Modal Header */
  .loader-modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .loader-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
  }

  .loader-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: #f7fafc;
    color: #718096;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
  }

  .loader-modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
  }

  /* Columns Container */
  .loader-columns-container {
    flex: 1;
    display: flex;
    gap: 2px;
    background: #e2e8f0;
    overflow: hidden;
  }

  /* Individual Column */
  .loader-column {
    flex: 1;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
  }

  .loader-column-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 2px solid #e2e8f0;
  }

  .loader-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
  }

  .loader-column-count {
    font-size: 0.85rem;
    color: #718096;
  }

  /* Layout List */
  .loader-layout-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
  }

  .loader-layout-item {
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
  }

  .loader-layout-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .loader-layout-item.selected {
    border-color: #4299e1;
    background: #ebf8ff;
  }

  .loader-layout-item.compatible {
    border-left: 4px solid #48bb78;
  }

  .loader-layout-item.partial-compatible {
    border-left: 4px solid #ed8936;
  }

  .layout-item-name {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
  }

  .layout-item-meta {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    justify-content: space-between;
  }

  .layout-item-creator {
    font-style: italic;
  }

  /* Empty State */
  .loader-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
  }

  /* Modal Footer */
  .loader-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
  }

  .loader-selection-summary {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .selection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .selection-label {
    color: #718096;
    font-weight: 500;
  }

  .selection-value {
    color: #2d3748;
    font-weight: 600;
  }

  .loader-action-buttons {
    display: flex;
    gap: 12px;
  }

  .loader-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
  }

  .loader-btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
  }

  .loader-btn-cancel:hover {
    background: #cbd5e0;
  }

  .loader-btn-load {
    background: #48bb78;
    color: white;
  }

  .loader-btn-load:hover {
    background: #38a169;
  }

  .loader-btn-load:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
  }


  /* Gradient Header */
  .loader-gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  }

  .loader-gradient-header .loader-modal-title {
    color: white !important;
  }

  .loader-gradient-header .loader-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
  }

  .loader-gradient-header .loader-modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
  }

  /* Room Bar Layout */
  .loader-room-bar {
    padding: 15px 30px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .loader-room-controls-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .loader-room-controls-right {
    display: flex;
    align-items: center;
  }

  /* Column Headers (Header 3) */
  .loader-column-headers {
    padding: 12px 0;
    background: white;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    gap: 2px;
  }

  .loader-column-header-item {
    flex: 1;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-right: 2px solid #e2e8f0;
  }
  
  .loader-column-header-item:last-child {
    border-right: none;
  }

  .loader-column-header-item .loader-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
  }

  .loader-inline-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #718096;
    margin-left: 8px;
  }

  /* Section filter in header 2 */
  .loader-section-filter {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .loader-section-filter label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
  }

  .loader-section-filter select {
    padding: 8px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    min-width: 200px;
  }

  .loader-section-filter select:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
  }

  /* Awaiting selection state */
  .loader-awaiting-selection {
    font-size: 1rem;
    color: #a0aec0;
  }

  /* Room Selection Bar */
  .loader-room-bar {
    padding: 15px 30px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .loader-room-selector {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .loader-room-selector label {
    font-weight: 600;
    color: #4a5568;
  }

  .loader-room-selector select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #2d3748;
    font-size: 0.95rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .loader-room-selector select:hover {
    border-color: #cbd5e0;
  }

  .loader-room-selector select:focus {
    outline: none;
    border-color: #4299e1;
  }

  .loader-shared-toggle {
    display: flex;
    align-items: center;
  }

  .loader-shared-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
  }

  .loader-shared-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  /* Section Filter */
  .loader-section-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .loader-section-filter label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
  }

  .loader-section-filter select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #2d3748;
    font-size: 0.85rem;
    cursor: pointer;
  }

  /* Two Column Layout */
  .loader-columns-container.loader-two-column .loader-column {
    flex: 1;
    min-width: 0;
  }

  /* Delete Button in Layout Item */
  .loader-layout-item .layout-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: #fee;
    color: #e53e3e;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .loader-layout-item:hover .layout-item-delete {
    opacity: 1;
  }

  .loader-layout-item .layout-item-delete:hover {
    background: #fc8181;
    color: white;
  }

  .loader-layout-item .layout-item-delete.disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .loader-layout-item .layout-item-delete.disabled:hover {
    background: #fee;
    color: #e53e3e;
  }

        /* Canvas area */
        .seating-canvas-container {
            flex: 1;
            padding: 20px;
            background: #fafafa;
            position: relative;
            overflow: auto;
        }
        
        #seatingCanvas {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            cursor: crosshair;
            display: block;
        }
        
        /* Properties panel */
        .seating-properties-panel {
            width: 250px;
            background: #f7fafc;
            padding: 20px;
            border-left: 2px solid #e2e8f0;
            display: none !important;
        }
        
        .seating-property-group {
            margin-bottom: 20px;
        }
        
        .seating-property-label {
            font-size: 0.85rem;
            color: #718096;
            margin-bottom: 5px;
            display: block;
        }
        
        .seating-property-input {
            width: 100%;
            padding: 6px 10px;
            border: 2px solid #cbd5e0;
            border-radius: 6px;
            font-size: 0.9rem;
        }
        
        .seating-property-input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .seating-color-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 8px;
        }
        
        .seating-color-btn {
            width: 100%;
            height: 35px;
            border: 2px solid #cbd5e0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .seating-color-btn:hover {
            transform: scale(1.1);
        }
        
        .seating-color-btn.selected {
            border-color: #4a5568;
            border-width: 3px;
        }
        
        /* Loading and save states */
        .seating-save-indicator {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #48bb78;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            display: none;
            align-items: center;
            gap: 10px;
            z-index: 1000;
        }
        
        .seating-save-indicator.saving {
            background: #ed8936;
        }
        
        .seating-save-indicator.error {
            background: #f56565;
        }

        .delete-mode-active * {
            cursor: inherit !important;
        }

        #floor-color-selector:hover {
            transform: scale(1.1) !important;
            border-color: #667eea !important;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
        }

        #floor-color-selector:active {
            transform: scale(0.95) !important;
        }
        
          .seating-resize-handle {
              fill: #667eea;
              stroke: white;
              stroke-width: 2;
              cursor: pointer;
          }

          .seating-aspect-handle {
              fill: #ecc94b;
              stroke: white;
              stroke-width: 2;
              cursor: pointer;
          }
        
        .seating-resize-handle:hover {
            fill: #764ba2;
        }
        
        .seating-aspect-handle:hover {
            fill: #ed8936;
        }

        /* Selection outline */
        .seating-selection-outline {
            fill: none;
            stroke: #667eea;
            stroke-width: 2;
            stroke-dasharray: 5,5;
            pointer-events: none;
        }
        
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        /* Responsive adjustments */
        @media (max-width: 1200px) {
            .properties-panel {
                display: none !important;
            }
        }
        
        @media (max-width: 768px) {
            .seating-shape-palette {
                width: 150px;
            }
            
            .seating-content {
                height: 500px;
            }
        }

        #seating-chart-container {
            animation: fadeIn 0.3s ease-in;
        }

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

        @keyframes breatheGlow {
            0%, 100% { 
                stroke-width: 3px; 
                stroke-opacity: 0.6;
                filter: drop-shadow(0 0 8px currentColor);
            }
            50% { 
                stroke-width: 5px; 
                stroke-opacity: 1;
                filter: drop-shadow(0 0 12px currentColor);
            }
        }

        .furniture-glow-white rect,
        .furniture-glow-white circle,
        .furniture-glow-white ellipse,
        .furniture-glow-white polygon,
        .furniture-glow-white path {
            stroke: white !important;
            stroke-width: 3px;
            animation: breatheGlow 2s infinite;
        }

        .furniture-glow-green rect,
        .furniture-glow-green circle,
        .furniture-glow-green ellipse,
        .furniture-glow-green polygon,
        .furniture-glow-green path {
            stroke: #10b981 !important;
            animation: breatheGlow 2s infinite;
        }

        .furniture-glow-yellow rect,
        .furniture-glow-yellow circle,
        .furniture-glow-yellow ellipse,
        .furniture-glow-yellow polygon,
        .furniture-glow-yellow path {
            stroke: #f59e0b !important;
            animation: breatheGlow 2s infinite;
        }

        .furniture-glow-thick-green rect,
        .furniture-glow-thick-green circle,
        .furniture-glow-thick-green ellipse,
        .furniture-glow-thick-green polygon,
        .furniture-glow-thick-green path {
            stroke: #10b981 !important;
            stroke-width: 6px !important;
            animation: breatheGlow 2s infinite;
        }

        /* Copy to Similar Glow Animations - ADD TO YOUR EXISTING CSS */
        @keyframes breatheGlow {
            0%, 100% { 
                stroke-width: 3px; 
                stroke-opacity: 0.7;
                filter: drop-shadow(0 0 8px currentColor);
            }
            50% { 
                stroke-width: 5px; 
                stroke-opacity: 1;
                filter: drop-shadow(0 0 15px currentColor);
            }
        }

        .furniture-glow-white { 
            stroke: white !important; 
            stroke-width: 3px !important;
            animation: breatheGlow 2s infinite; 
        }

        .furniture-glow-thick-white { 
            stroke: white !important; 
            stroke-width: 6px !important;
            animation: breatheGlow 1.5s infinite; 
        }

        .furniture-glow-green { 
            stroke: #10b981 !important; 
            stroke-width: 3px !important;
            animation: breatheGlow 2s infinite; 
        }

        .furniture-glow-yellow { 
            stroke: #f59e0b !important; 
            stroke-width: 3px !important;
            animation: breatheGlow 2s infinite; 
        }

        .furniture-glow-blue { 
            stroke: #3b82f6 !important; 
            stroke-width: 3px !important;
            animation: breatheGlow 2s infinite; 
        }

  #assignedStudentChips {
    pointer-events: none !important;
}

#assignedStudentChips .student-chip {
    pointer-events: auto !important;
}

/* Ensure dragged elements appear on top */
.student-chip[draggable="true"]:active {
    z-index: 1000 !important;
}

/* Fix cursor during drag */
body.student-dragging {
    cursor: grabbing !important;
}

.student-chip.seated-chip {
    will-change: transform;
    pointer-events: none !important; /* Don't block clicks on furniture/seats underneath */
}

/* Ensure pool chips are interactive */
#unassignedPool .student-chip {
    pointer-events: auto !important;
}

.seating-canvas-container.group-painting {
    cursor: crosshair !important;
}

/* Visual feedback for selected color in palette */
#groupColorPalette > div.selected {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.3) !important;
    transform: scale(1.1) !important;
}

/* Smooth transitions for seat color changes */
[data-seat-id] circle {
    transition: fill 0.2s, stroke 0.2s, stroke-width 0.2s;
}

/* Group color indicator that follows mouse */
#groupColorIndicator {
    transition: none !important; /* No transition for smooth following */
}

/* Ensure seats are clickable in group painting mode */
.assign-mode [data-seat-id] {
    cursor: pointer;
}

/* Re-enable student chips pointer events in assign mode so they can be dragged */
.assign-mode .student-chip.seated-chip {
    pointer-events: auto !important;
}

.assign-mode.group-painting [data-seat-id] {
    cursor: crosshair;
}

/* Visual feedback when hovering over seats in group painting mode */
.assign-mode.group-painting [data-seat-id]:hover circle {
    filter: brightness(1.1);
}

.loader-layout-item.compatible {
  border-left: 4px solid #48bb78;
}

.loader-layout-item.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.loader-column.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.loader-column.disabled .loader-column-header {
  background: #f0f0f0;
}

/* Add unselect button styles */
.selection-item {
  position: relative;
  padding-right: 25px;
}

.selection-unselect {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #e2e8f0;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #4a5568;
  transition: all 0.2s;
}

.selection-unselect:hover {
  background: #cbd5e0;
  color: #2d3748;
}

.global-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #fbbf24;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

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

.global-toast.toast-success {
    background: #10b981;
    color: white;
}

.global-toast.toast-error {
    background: #ef4444;
    color: white;
}

.global-toast.toast-warning {
    background: #fbbf24;
    color: white;
}

/* Modern class dropdown */
.assign-class-dropdown {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    margin-bottom: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.assign-class-dropdown:focus {
    outline: none;
    border-color: #667eea;
}

@keyframes redTextGlow {
    0%, 100% { 
        color: #dc2626;
        text-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
    }
    50% { 
        color: #ef4444;
        text-shadow: 0 0 12px rgba(220, 38, 38, 0.9);
    }
}

.stat-warning {
    animation: redTextGlow 2s infinite;
    font-weight: 700 !important;
}

.seating-options-panel {
    margin: 10px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Increased from 10px to 25px */
    transition: all 0.3s ease;
}

.seating-options-panel.hidden {
    display: none;
}

.seating-options-panel .pill-slider-item {
    margin-bottom: 0; /* Removed extra margin since gap handles it */
    height: 60px; /* Ensure consistent height */
}

.seating-options-panel .pill-slider-item:first-child {
    margin-top: 22px; /* Even more space from the Options button */
}

/* Adjust thumb positions for narrower 140px 3-position slider */
.seating-options-panel .pill-slider-3pos.pos-left .pill-slider-thumb-3pos {
    transform: translateX(0);
}

.seating-options-panel .pill-slider-3pos.pos-center .pill-slider-thumb-3pos {
    transform: translateX(48px); /* (140 - 44) / 2 */
}

.seating-options-panel .pill-slider-3pos.pos-right .pill-slider-thumb-3pos {
    transform: translateX(94px); /* 140 - 44 - 2px */
}

/* Tooltip for disabled buttons */
.btn-disabled-tooltip {
    position: relative;
}

.btn-disabled-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.btn-disabled-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
    z-index: 1000;
    pointer-events: none;
}

/* ============================================================================
   ADD THIS CSS TO index.html <style> SECTION
   Uses existing .saveas-modal classes, adds only new components
   ============================================================================ */

/* Split button for Smart Assign */
.smart-assign-split-btn {
    display: flex;
    padding: 0 !important;
}

.smart-assign-main {
    flex: 1;
    padding: 10px 12px;
    cursor: pointer;
}

.smart-assign-gear {
    padding: 10px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.smart-assign-gear:hover {
    transform: rotate(90deg);
}

/* Tooltip for split button */
.smart-assign-main:hover::after,
.smart-assign-gear:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Wide modal for advanced settings */
.saveas-modal.wide {
    width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Student exclusion list */
.exclusion-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: #f7fafc;
    margin: 12px 0;
}

.exclusion-item {
    display: flex;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}

.exclusion-item:hover {
    background: #edf2f7;
}

.exclusion-item input {
    margin: 0 8px 0 0;
    width: auto;
}

.exclusion-summary {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 8px;
}

/* Group counters */
.group-counters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.group-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
}

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

.group-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.counter-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover:not(:disabled) {
    background: #edf2f7;
}

.counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.counter-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
}

/* Distribution total */
.distribution-total {
    padding: 10px;
    background: #edf2f7;
    border-radius: 6px;
    margin-top: 8px;
    text-align: center;
}

/* Radio options */
.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 8px 0;
    cursor: pointer;
}

.radio-option:hover {
    background: #f7fafc;
}

.radio-option input {
    margin: 2px 10px 0 0;
    width: auto;
}

.radio-option:has(input:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

/* History Save Button */
#historySaveButton {
    position: fixed;
    bottom: 20px;
    right: 300px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 60;
    width: 280px;
    transition: all 0.3s ease;
}

#historySaveButton .history-save-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transition: all 0.2s ease;
}

#historySaveButton .history-save-tab:hover {
    filter: brightness(0.95);
}

#historySaveButton .history-save-icon {
    font-size: 18px;
}

#historySaveButton .history-save-text {
    font-weight: 700;
    font-size: 14px;
    flex: 1;
}

#historySaveButton .history-save-count {
    background: #e2e8f0;  /* Was: rgba(255, 255, 255, 0.25) - Made opaque */
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

#historySaveButton .history-save-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
}

#historySaveButton.collapsed .history-save-toggle {
    transform: rotate(-90deg);
}

#historySaveButton.collapsed .history-save-content {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-top: none;
}

#historySaveButton .history-save-content {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
    border-top: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    border-radius: 0 0 10px 10px;
}

/* Yellow glow animation for history save button */
#historySaveButton.glow-yellow {
    animation: yellowPulseGlow 2s ease-in-out infinite;
}

@keyframes yellowPulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(251, 191, 36, 0);
    }
}

/* Blue button with yellow pulsing glow for save groups */
@keyframes saveButtonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7), 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(251, 191, 36, 0), 0 4px 25px rgba(59, 130, 246, 0.6);
    }
}

/* Saved state (checkmark) */
#historySaveButton.saved .history-save-tab {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ============================================================================
   ADVANCED ASSIGN MODAL - REPAIR CSS
   ============================================================================
   The Advanced Assign modal was relying on .saveas-modal classes.
   This CSS replaces those dependencies with its own styles.
   
   INSERT THIS: Right after you delete the old .saveas-modal CSS
   (Around line 2706, where the old Save As CSS used to be)
*/

/* Advanced Assign Modal Overlay */
#advancedAssignModal.saveas-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Advanced Assign Modal Container */
#advancedAssignModal .saveas-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

#advancedAssignModal .saveas-modal.wide {
    width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

#advancedAssignModal .saveas-modal h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.25rem;
}

/* Advanced Assign Modal Buttons */
#advancedAssignModal .saveas-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#advancedAssignModal .saveas-modal-buttons button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

#advancedAssignModal .saveas-cancel-btn {
    background: #f3f4f6;
    color: #4b5563;
}

#advancedAssignModal .saveas-cancel-btn:hover {
    background: #e5e7eb;
}

#advancedAssignModal .saveas-confirm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#advancedAssignModal .saveas-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#advancedAssignModal .saveas-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Radio options styling */
#advancedAssignModal .radio-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

#advancedAssignModal .radio-option:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

#advancedAssignModal .radio-option input[type="radio"] {
    margin: 4px 10px 0 0;
}

        
        /* Undo/Redo Button States */
        #undoBtn:disabled,
        #redoBtn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            filter: grayscale(80%);
        }
        
        #undoBtn:not(:disabled):hover,
        #redoBtn:not(:disabled):hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        
        #undoBtn:not(:disabled):active,
        #redoBtn:not(:disabled):active {
            transform: scale(0.95);
        }

/* Grade Level Selector Buttons */
.grade-level-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
}

.grade-level-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.grade-level-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.grade-level-btn.selected:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653b8b 100%);
    border-color: #5568d3;
}

/* Spinner Animation for Organization Search */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ============================================================================
   SAVE/LOAD PILL SLIDER STYLES
   ============================================================================ */

.save-load-pill-container {
    flex: 1.5;
    min-width: 300px;
    max-width: 550px;
}

.save-load-pill-slider {
    display: flex;
    height: 80px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   SECTION CONTAINERS
   ============================================================================ */

.save-load-section {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Classroom mode active */
.save-load-pill-slider.mode-classroom .classroom-section {
    flex: 0 0 80%;
    background: var(--theme-color, #686aed);
    cursor: default;
    border-radius: 0 10px 10px 0; /* Inside corners (right side) rounded */
}

.save-load-pill-slider.mode-classroom .students-section {
    flex: 0 0 20%;
    background: #f7fafc;
}

/* Students mode active */
.save-load-pill-slider.mode-students .students-section {
    flex: 0 0 80%;
    background: var(--theme-color, #686aed);
    cursor: default;
    border-radius: 10px 0 0 10px; /* Inside corners (left side) rounded */
}

.save-load-pill-slider.mode-students .classroom-section {
    flex: 0 0 20%;
    background: #f7fafc;
}

/* ============================================================================
   ACTIVE CONTENT (75%)
   ============================================================================ */

.section-content-active {
    display: none;
    padding: 12px 16px;
    color: #2d3748;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.save-load-pill-slider.mode-classroom .classroom-section .section-content-active,
.save-load-pill-slider.mode-students .students-section .section-content-active {
    display: flex;
}

.section-row-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.row-label {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.layout-name {
    flex: 1;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2d3748;
}

.layout-name.empty {
    opacity: 0.6;
    font-style: italic;
    color: #718096;
}

.name-layout-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.name-layout-btn:hover {
    border-color: #a0aec0;
    background: #f7fafc;
    transform: translateY(-1px);
}

.section-buttons {
    display: flex;
    gap: 6px;
}

/* ============================================================================
   PILL BUTTONS
   ============================================================================ */

.pill-save-btn,
.pill-saveas-btn,
.pill-load-btn,
.pill-draft-btn,
.pill-publish-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
    background: white;
    color: #4a5568;
}

.pill-save-btn:hover:not(:disabled),
.pill-draft-btn:hover:not(:disabled),
.pill-saveas-btn:hover,
.pill-load-btn:hover,
.pill-publish-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #a0aec0;
    background: #f7fafc;
}

.pill-save-btn:disabled,
.pill-draft-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.pill-publish-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* ============================================================================
   PULSING EFFECTS
   ============================================================================ */

/* Red pulse for unsaved changes */
.pill-save-btn.pulse-red,
.pill-draft-btn.pulse-red {
    animation: pulseRed 2s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 101, 101, 0);
    }
}

/* Green pulse for ready to publish */
.pill-publish-btn.pulse-green {
    animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(72, 187, 120, 0);
    }
}

/* ============================================================================
   INACTIVE CONTENT (25%)
   ============================================================================ */

.section-content-inactive {
    display: none;
    padding: 8px;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.save-load-pill-slider.mode-classroom .students-section .section-content-inactive,
.save-load-pill-slider.mode-students .classroom-section .section-content-inactive {
    display: flex;
}

.inactive-switch-text {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-align: center;
    line-height: 1.4;
    padding: 0 4px;
}

.unsaved-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ed8936;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(237, 137, 54, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ============================================================================
   MODAL STYLES (matching existing modal system)
   ============================================================================ */

.publish-options {
    margin: 20px 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.radio-option input[type="radio"] {
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked + div {
    color: #2d3748;
}

.radio-option input[type="radio"]:disabled + div {
    opacity: 0.5;
}

/* Modal button adjustments for pill-style buttons */
.saveas-modal-buttons .pill-draft-btn,
.saveas-modal-buttons .pill-publish-btn {
    padding: 12px 20px;
    font-size: 14px;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 1200px) {
    .save-load-pill-container {
        min-width: 280px;
    }
    
    .section-buttons {
        gap: 4px;
    }
    
    .pill-save-btn,
    .pill-saveas-btn,
    .pill-load-btn,
    .pill-draft-btn,
    .pill-publish-btn {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* ============================================================================
   DISABLED CLASS OPTIONS IN EXAMPLE CLASSROOM
   ============================================================================ */

select option:disabled,
select option.disabled-in-example-room {
    color: #a0aec0 !important;
    font-style: italic;
    background-color: #f7fafc;
}

select option:disabled:hover,
select option.disabled-in-example-room:hover {
    cursor: not-allowed;
    background-color: #f7fafc;
}

/* Border flash animation for disable seats popup */
.border-flash-red {
    animation: border-flash-red 0.6s ease-in-out;
    border: 3px solid #ef4444 !important;
}

/* Red ghost styling for tempDisabled seats */
[data-seat-id].temp-disabled circle {
    fill: rgba(239, 68, 68, 0.2) !important;
    stroke: #ef4444 !important;
    stroke-width: 2 !important;
}

[data-seat-id].temp-disabled text {
    fill: #dc2626 !important;
}
