/* Extracted from inline <style> blocks in index.html */
body { margin: 0; font-family: Arial, sans-serif; background: #f0f0f0; }
#viewer { width: 600px; height: 600px; border: 1px solid #ccc; margin: 20px auto; }
.controls { max-width: 600px; margin: 20px auto; display: grid; gap: 10px; }
label { display: flex; align-items: center; gap: 10px; }
#addCabinetToCart:active { background: #004085; }
#texturesRow { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; align-items: center; min-height: 69px; }
select { position: relative; z-index: 10; }
#modelSelect, #modelSelectMobile { height: auto; size: 2; overflow-y: auto; border: 1px solid #ccc; border-radius: 4px; padding: 4px; background: white; }
#modelSelect option, #modelSelectMobile option { padding: 6px 8px; margin: 1px 0; }
#modelSelect option:hover, #modelSelectMobile option:hover { background-color: #f0f0f0; }
.dropdown { position: relative; z-index: 10; }
#cartPanel { z-index: 1000 !important; }
#viewerContainer { position: relative; z-index: 1; }
canvas#viewerCanvas { position: relative; z-index: 0; width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 768px) { #topBar { flex-direction: column; gap: 10px; padding: 15px 10px; } .controls-group { flex-direction: column; width: 100%; gap: 8px; } .controls-group label { margin-bottom: 5px; font-weight: 600; } .controls-group select { width: 100%; margin-right: 0; margin-bottom: 10px; padding: 8px; } #mainLayout { flex-direction: column; height: auto; min-height: auto; padding: 10px; gap: 15px; } #cabinetSelection { width: 100%; order: 1; max-height: none; padding: 15px; } #rightPanelContainer { width: 100%; order: 2; } #measurementSection { width: 100%; order: 3; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } #buttonSection { width: 100%; order: 4; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } #texturesAndPricing { width: 100%; order: 5; } #leftPanel { display: none; } #viewerContainer { width: 100%; min-height: 350px; height: 350px; } #texturesRow { flex-direction: column; gap: 15px; padding: 15px; } #texturesRow label { width: 100%; flex-direction: column; gap: 8px; text-align: left; } #texturesRow select { width: 100%; padding: 8px; } #floatingCartSummary { position: fixed; top: 10px; right: 10px; font-size: 14px; padding: 8px 12px; } #pricingSection { padding: 15px; } body { font-size: 14px; } .cart-sidebar { width: 280px; right: -300px; } }
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: block; } #leftPanel { display: none !important; } #cabinetSelection { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } #cabinetSelection label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; } #cabinetSelection input, #cabinetSelection select { width: 100%; margin-top: 4px; margin-bottom: 12px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; } #measurementSection label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; } #measurementSection input { width: 100%; margin-top: 4px; margin-bottom: 12px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; } #buttonSectionMobile { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } #addCabinetToCartMobile { background: #007bff; color: white; padding: 12px 15px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; width: 100%; font-size: 16px; transition: background-color 0.3s ease; } #addCabinetToCartMobile:hover { background: #0056b3; } #texturesAndPricing { order: 5; } }
@media (max-width: 768px) { .cart-open #viewerContainer { width: 100% !important; margin-right: 0 !important; } .cart-open #rightPanelContainer { margin-right: 0 !important; } .cart-sidebar { z-index: 1001; } }
.cart-open #viewerContainer { width: calc(100% - 320px) !important; transition: width 0.3s ease; }
.cart-open #rightPanelContainer { margin-right: 320px; transition: margin-right 0.3s ease; }
#viewerContainer canvas { width: 100% !important; height: 100% !important; }
html, body { height: 100%; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; background: #f5f5f5; }
#app, #main, #content { height: 100%; max-height: 600px; overflow-y: auto; box-sizing: border-box; width: 100%; }
body { width: 100vw; max-width: 100vw; }
@media (max-width: 768px) { #app, #main, #content { max-height: 95vh; padding: 5px; } select, input, button { font-size: 16px; min-height: 40px; } }
.left-panel, .right-panel, .main-layout { padding: 0 !important; margin: 0 !important; box-sizing: border-box; }
@media (max-width: 768px) { .main-layout { flex-direction: column; padding: 5px; gap: 5px; } .left-panel { width: 100%; min-width: auto; order: 1; padding: 5px 0 0 0 !important; } .right-panel { order: 2; width: 100%; padding: 0 !important; } #viewerContainer { min-height: 200px; margin-bottom: 0; } .model-selection-mobile { display: block; margin-bottom: 5px; } .dimension-group-mobile { display: block; margin-top: 5px; } .price-display { margin: 0 0 5px 0; padding: 8px; font-size: 14px; } }
@media (min-width: 769px) { .right-panel { flex-direction: row; align-items: flex-start; } #viewerContainer { flex: 2; min-width: 0; } .price-display { flex: 1; margin-left: 10px; margin-top: 0; align-self: flex-start; min-width: 120px; max-width: 180px; padding: 10px; } }
.main-3col-layout { display: flex; flex-direction: row; width: 100%; max-width: none; min-width: 0; height: auto; box-sizing: border-box; align-items: stretch; gap: 20px; padding: 0 20px; }
.panel-left, .panel-right { flex: 0 0 22vw; min-width: 200px; max-width: 300px; width: 22vw; box-sizing: border-box; }
.panel-middle { flex: 1 1 0; min-width: 0; box-sizing: border-box; min-height: 650px; display: flex; flex-direction: column; }
.panel-left { margin-bottom: 0 !important; padding-bottom: 0 !important; padding-left: 18px !important; padding-right: 12px !important; }
@media (max-width: 900px) { .main-3col-layout { flex-direction: column; height: auto; min-width: 0; max-width: 100vw; width: 100vw; align-items: stretch; } .panel-left, .panel-middle, .panel-right { flex: none !important; width: 100% !important; min-width: 0 !important; max-width: 100vw !important; height: auto !important; min-height: 0 !important; border: none !important; padding: 10px 4vw !important; box-sizing: border-box; align-items: stretch !important; } }
@media (max-width: 900px) { .panel-left label, .panel-left input, .panel-left select, .panel-left button, .panel-right label, .panel-right input, .panel-right select, .panel-right button { width: 100% !important; max-width: 400px !important; margin-left: auto; margin-right: auto; display: block; text-align: center; font-size: 1.1em; } .panel-right { align-items: center; text-align: center; padding-top: 0 !important; } #pricingSection { width: 100% !important; max-width: 400px !important; margin-left: auto; margin-right: auto; background: #f8f9fa; border-radius: 8px; padding: 16px 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); } }
@media (max-width: 900px) { body, html { min-width: 0 !important; max-width: 100vw !important; width: 100vw !important; height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; } }
@media (min-width: 901px) { .main-3col-layout { align-items: stretch !important; height: 600px !important; } .panel-left, .panel-middle, .panel-right { height: 100% !important; min-height: 0 !important; align-self: stretch !important; box-sizing: border-box; } }
/* Notification styles */
.custom-notification { position: fixed; top: 20px; right: 20px; z-index: 10000; max-width: 400px; padding: 16px 20px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.4; animation: slideInRight 0.3s ease-out; }
.custom-notification.success { background: #10b981; color: white; border-left: 4px solid #059669; }
.custom-notification.warning { background: #f59e0b; color: white; border-left: 4px solid #d97706; }
.custom-notification.error { background: #ef4444; color: white; border-left: 4px solid #dc2626; }
.custom-notification.info { background: #2563eb; color: white; border-left: 4px solid #1d4ed8; }
.custom-notification .notification-title { font-size: 16px; font-weight: 600; margin: 0 0 6px 0; display: flex; align-items: center; gap: 6px; }
.custom-notification .notification-message { margin: 0 0 10px 0; font-size: 14px; }
.custom-notification .notification-meta { font-size: 11px; opacity: 0.8; display: flex; justify-content: space-between; align-items: center; }
.custom-notification button[data-action="close-notification"] { background: rgba(0,0,0,0.15); border: none; color: white; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
