/* Фоновая миллиметровка на весь экран */
.grid-background {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Воздушные карточки (Глассморфизм) */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}
.glass-card:hover {
    box-shadow: 0 15px 50px -10px rgba(59, 130, 246, 0.25);
}

/* Эффекты неона для полей ввода */
.neon-input {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    outline: none;
}
.neon-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    background: #ffffff;
}

/* Контейнеры SVG: чистые, светлые, без сетки */
.svg-container { 
    background-color: #ffffff; 
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Инженерная графика в SVG */
.svg-wall { fill: #f1f5f9; stroke: #94a3b8; stroke-width: 1.5; }
.svg-panel-line { stroke: #cbd5e1; stroke-width: 0.5; stroke-dasharray: 4 2; }
.svg-opening { fill: #ffffff; stroke: #64748b; stroke-width: 1.5; stroke-dasharray: 2 2; }
.svg-flashing { fill: rgba(59, 130, 246, 0.15); stroke: #3b82f6; stroke-width: 2; } /* Легкий синий неон для фасонки */
.svg-text { fill: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px; font-weight: 600; }
.svg-screw { fill: #3b82f6; opacity: 0.7; }

/* Кастомный воздушный скроллбар */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.fade-in { animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}