.otp-modal-overlay{position:fixed;inset:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease-in-out;padding:20px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.otp-modal-content{background:#fff;border-radius:16px;padding:40px;max-width:500px;width:90%;position:relative;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out;margin:0 auto;will-change:transform,opacity}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.otp-modal-close{position:absolute;top:15px;right:15px;background:none;border:none;font-size:28px;color:#999;cursor:pointer;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}.otp-modal-close:hover{background:#f5f5f5;color:#333}.otp-modal-header{text-align:center;margin-bottom:30px}.otp-icon{font-size:48px;margin-bottom:15px}.otp-modal-header h2{margin:0 0 10px;font-size:24px;color:#1a1a1a}.otp-subtitle{color:#666;font-size:14px;margin:0;line-height:1.5}.otp-subtitle strong{color:#5c9eff;word-break:break-word}.otp-input-container{display:flex;gap:10px;justify-content:center;margin-bottom:30px}.otp-input{width:50px;height:60px;font-size:24px;text-align:center;border:2px solid #e1e8ed;border-radius:12px;outline:none;transition:all .2s;font-weight:600;color:#1a1a1a}.otp-input:focus{border-color:#5c9eff;box-shadow:0 0 0 3px #5c9eff1a}.otp-input:disabled{background:#f5f5f5;cursor:not-allowed}.otp-trust-device{background:#f9fafb;border:1px solid #e1e8ed;border-radius:12px;padding:15px;margin-bottom:20px}.otp-trust-device label{display:flex;align-items:center;cursor:pointer;font-weight:500;color:#1a1a1a}.otp-trust-device input[type=checkbox]{width:18px;height:18px;margin-right:10px;cursor:pointer;accent-color:#5c9eff}.otp-trust-device-hint{margin:8px 0 0 28px;font-size:12px;color:#666;line-height:1.4}.otp-verify-button{width:100%;padding:14px;background:#5c9eff;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s}.otp-verify-button:hover:not(:disabled){background:#4a8ae8;transform:translateY(-1px);box-shadow:0 4px 12px #5c9eff4d}.otp-verify-button:active:not(:disabled){transform:translateY(0)}.otp-verify-button:disabled{background:#ccc;cursor:not-allowed;transform:none}.otp-resend-section{text-align:center;margin-top:20px;padding-top:20px;border-top:1px solid #e1e8ed}.otp-resend-section p{margin:0 0 10px;color:#666;font-size:14px}.otp-resend-button{background:none;border:none;color:#5c9eff;font-weight:600;cursor:pointer;font-size:14px;padding:8px 16px;border-radius:6px;transition:all .2s}.otp-resend-button:hover:not(:disabled){background:#f0f7ff}.otp-resend-button:disabled{color:#999;cursor:not-allowed}@media(max-width:600px){.otp-modal-content{padding:30px 20px}.otp-input{width:45px;height:55px;font-size:22px}.otp-input-container{gap:8px}}.login-page{display:flex;min-height:100vh;background:#fff}.login-slider{flex:0 0 70%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:background .6s ease}.slider-content{position:relative;z-index:2;text-align:center;padding:60px;max-width:700px;animation:fadeIn .6s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.slider-icon{font-size:6rem;margin-bottom:30px;animation:float 3s ease-in-out infinite}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.slider-title{font-size:2.5rem;color:#fff;margin-bottom:20px;font-weight:700;text-shadow:0 2px 10px rgba(0,0,0,.1)}.slider-description{font-size:1.25rem;color:#fffffff2;line-height:1.8;margin-bottom:40px;text-shadow:0 1px 5px rgba(0,0,0,.1)}.slider-nav{display:flex;align-items:center;justify-content:center;gap:30px;margin-top:50px}.nav-btn{background:#fff3;border:2px solid rgba(255,255,255,.3);color:#fff;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.nav-btn:hover{background:#ffffff4d;border-color:#ffffff80;transform:scale(1.1)}.slider-dots{display:flex;gap:12px}.dot{width:12px;height:12px;border-radius:50%;background:#ffffff4d;border:2px solid transparent;cursor:pointer;transition:all .3s ease;padding:0}.dot:hover{background:#ffffff80;transform:scale(1.2)}.dot.active{background:#fff;width:32px;border-radius:6px}.slider-decoration{position:absolute;inset:0;pointer-events:none;overflow:hidden}.decoration-circle{position:absolute;border-radius:50%;background:#ffffff1a;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.circle-1{width:400px;height:400px;top:-100px;right:-100px;animation:pulse 8s ease-in-out infinite}.circle-2{width:300px;height:300px;bottom:-50px;left:-50px;animation:pulse 6s ease-in-out infinite reverse}.circle-3{width:200px;height:200px;top:50%;left:10%;animation:pulse 10s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:.3}50%{transform:scale(1.1);opacity:.5}}.login-form-container{flex:0 0 30%;display:flex;align-items:center;justify-content:center;padding:40px;background:#fff;box-shadow:-5px 0 20px #0000000d}.login-form-wrapper{width:100%;max-width:400px}.login-header{text-align:center;margin-bottom:40px}.login-header h1{font-size:2rem;color:#333;margin-bottom:8px;font-weight:700}.login-subtitle{font-size:1.1rem;color:#666;font-weight:400}.login-error{background:#fee;border:1px solid #fcc;color:#c33;padding:12px 16px;border-radius:8px;margin-bottom:24px;font-size:.9rem;display:flex;align-items:center;gap:8px;animation:shake .4s ease}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.error-icon{font-size:1.2rem}.login-form{display:flex;flex-direction:column;gap:24px}.login-form .form-group{display:flex;flex-direction:column;gap:8px}.login-form .form-group label{font-weight:600;color:#333;font-size:.95rem}.login-form .form-group input{padding:14px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:all .2s;background:#fafafa;width:100%}.login-form .form-group input:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.password-input-wrapper input{padding-right:50px}.login-submit-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:16px;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:10px}.login-submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.login-submit-btn:active:not(:disabled){transform:translateY(0)}.login-submit-btn:disabled{opacity:.7;cursor:not-allowed}.btn-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.login-footer{margin-top:40px;text-align:center}.footer-text{color:#999;font-size:.85rem;line-height:1.5}@media(max-width:1024px){.login-slider{flex:0 0 60%}.login-form-container{flex:0 0 40%}.slider-title{font-size:2rem}.slider-description{font-size:1.1rem}}@media(max-width:768px){.login-page{flex-direction:column}.login-slider{flex:0 0 auto;min-height:50vh}.login-form-container{flex:1;padding:30px 20px}.slider-content{padding:40px 20px}.slider-icon{font-size:4rem}.slider-title{font-size:1.75rem}.slider-description{font-size:1rem}.slider-nav{gap:20px;margin-top:30px}.nav-btn{width:40px;height:40px}.login-header h1{font-size:1.75rem}}@media(max-width:480px){.slider-content{padding:30px 15px}.slider-icon{font-size:3rem}.slider-title{font-size:1.5rem}.slider-description{font-size:.95rem}.login-form-container{padding:20px 15px}.circle-1,.circle-2,.circle-3{display:none}}.admin-dashboard{display:flex;min-height:100vh;background:#f5f7fa}.admin-dashboard.loading{justify-content:center;align-items:center;flex-direction:column;gap:20px}.spinner{width:50px;height:50px;border:4px solid #e0e0e0;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.admin-sidebar{width:280px;background:#fff;border-right:1px solid #e0e0e0;display:flex;flex-direction:column;padding:30px 20px}.sidebar-header{margin-bottom:40px}.sidebar-header h1{font-size:1.75rem;color:#333;margin-bottom:5px}.admin-name{color:#666;font-size:.9rem}.sidebar-nav{flex:1;display:flex;flex-direction:column;gap:10px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border:none;background:transparent;border-radius:8px;cursor:pointer;font-size:1rem;color:#666;transition:all .2s;text-align:left;text-decoration:none}.nav-item:hover{background:#f5f7fa;color:#667eea}.nav-item.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.logout-btn{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #e0e0e0;background:#fff;border-radius:8px;cursor:pointer;font-size:1rem;color:#e74c3c;transition:all .2s;margin-top:20px}.logout-btn:hover{background:#fee;border-color:#e74c3c}.admin-main{flex:1;padding:40px;overflow-y:auto}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.dashboard-header h2{font-size:2rem;color:#333}.primary-btn{display:flex;align-items:center;gap:8px;padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.primary-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:40px}.stat-card{background:#fff;border-radius:12px;padding:24px;display:flex;align-items:center;gap:20px;box-shadow:0 2px 8px #0000000d}.stat-icon{width:60px;height:60px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.stat-icon.users{background:linear-gradient(135deg,#667eea,#764ba2)}.stat-icon.projects{background:linear-gradient(135deg,#f093fb,#f5576c)}.stat-icon.designs{background:linear-gradient(135deg,#4facfe,#00f2fe)}.stat-icon.media{background:linear-gradient(135deg,#43e97b,#38f9d7)}.stat-info{flex:1}.stat-label{color:#666;font-size:.9rem;margin-bottom:5px}.stat-value{font-size:2rem;font-weight:700;color:#333}.stat-detail{color:#999;font-size:.85rem;margin-top:5px}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:30px}.dashboard-section{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000000d}.dashboard-section h3{font-size:1.25rem;color:#333;margin-bottom:20px}.table-container{overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;padding:12px;border-bottom:2px solid #e0e0e0;color:#666;font-weight:600;font-size:.9rem}.data-table td{padding:12px;border-bottom:1px solid #f0f0f0;color:#333}.data-table tbody tr:hover{background:#f9f9f9}.role-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:600}.role-badge.admin{background:#e3f2fd;color:#1976d2}.role-badge.user{background:#f3e5f5;color:#7b1fa2}.no-data{text-align:center;color:#999;font-style:italic}@media(max-width:768px){.admin-dashboard{flex-direction:column}.admin-sidebar{width:100%;border-right:none;border-bottom:1px solid #e0e0e0;padding:20px}.admin-main{padding:20px}.dashboard-header{flex-direction:column;align-items:flex-start;gap:15px}.dashboard-grid{grid-template-columns:1fr}}.users-section{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000000d}.action-buttons{display:flex;gap:8px}.edit-btn{padding:8px;background:#e3f2fd;color:#1976d2;border:1px solid #bbdefb;border-radius:6px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.edit-btn:hover{background:#1976d2;color:#fff;border-color:#1976d2}.delete-btn{padding:8px;background:#fee;color:#e74c3c;border:1px solid #fcc;border-radius:6px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.delete-btn:hover:not(:disabled){background:#e74c3c;color:#fff;border-color:#e74c3c}.delete-btn:disabled{opacity:.3;cursor:not-allowed}.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:600}.status-badge.verified{background:#d4edda;color:#155724}.status-badge.unverified{background:#fff3cd;color:#856404}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:30px;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.modal-content h3{font-size:1.5rem;color:#333;margin-bottom:24px}.user-form{display:flex;flex-direction:column;gap:20px}.user-form .form-group{display:flex;flex-direction:column;gap:8px}.user-form .form-group label{font-weight:600;color:#333;font-size:.95rem}.user-form .form-group input,.user-form .form-group select{padding:12px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:border-color .2s}.user-form .form-group input:focus,.user-form .form-group select:focus{outline:none;border-color:#667eea}.password-input-wrapper{position:relative;display:flex;align-items:center}.password-input-wrapper input{padding-right:50px;width:100%}.password-toggle-btn{position:absolute;right:12px;background:transparent;border:none;color:#666;cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center;transition:color .2s;border-radius:4px}.password-toggle-btn:hover{color:#667eea;background:#667eea1a}.password-toggle-btn:active{transform:scale(.95)}.modal-buttons{display:flex;gap:12px;margin-top:10px}.submit-btn{flex:1;padding:12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.submit-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.cancel-btn{flex:1;padding:12px;background:#fff;color:#666;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.cancel-btn:hover{background:#f5f7fa;border-color:#ccc}.nav-item{text-decoration:none}.canvas-controls{position:absolute;bottom:20px;right:20px;display:flex;gap:1rem;align-items:center;z-index:100}.coordinate-display{display:flex;align-items:center;gap:.5rem;background:#fff;padding:.5rem 1rem;border-radius:12px;box-shadow:0 4px 12px #00000026;border:1px solid #e1e8ed;font-family:Courier New,monospace}.coord-label{font-weight:700;color:#4a5568;font-size:.9rem}.coord-value{font-weight:600;color:#2d3748;font-size:1rem;min-width:50px;text-align:right}.coord-unit{font-size:.85rem;color:#718096;font-weight:500}.zoom-controls{display:flex;align-items:center;gap:.5rem;background:#fff;padding:.5rem;border-radius:12px;box-shadow:0 4px 12px #00000026;border:1px solid #e1e8ed}.control-btn{width:40px;height:40px;border:none;background:#fff;border-radius:8px;cursor:pointer;font-size:1.2rem;display:flex;align-items:center;justify-content:center;transition:all .2s;color:#4a5568;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}.control-btn:hover{background:#f7fafc;transform:scale(1.05)}.control-btn:active{transform:scale(.95)}.zoom-display{min-width:60px;text-align:center;font-weight:600;color:#2d3748;font-size:.95rem}.pan-btn,.lock-btn,.fullscreen-btn{background:#fff;box-shadow:0 4px 12px #00000026;border:1px solid #e1e8ed}.pan-btn.active,.pan-btn:hover{background:#fbbf24;color:#fff}.lock-btn.active,.lock-btn:hover{background:#ff6b6b;color:#fff}.fullscreen-btn.active,.fullscreen-btn:hover{background:#5c9eff;color:#fff}.save-project-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea4d;border:none}.save-project-btn:hover{background:linear-gradient(135deg,#764ba2,#667eea);box-shadow:0 6px 16px #667eea66}.export-btn{background:#fff;box-shadow:0 4px 12px #00000026;border:1px solid #e1e8ed}.export-btn.active,.export-btn:hover{background:#48bb78;color:#fff}.design-canvas-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f5f7fa;padding:2rem;touch-action:none;overflow:hidden;position:relative}.design-canvas-wrapper canvas{cursor:default;touch-action:none}.qr-modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.qr-modal-content{background:#fff;padding:2rem;border-radius:16px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 25px 80px #0006;position:relative}.qr-modal-close{position:absolute;top:1rem;right:1rem;background:#f0f0f0;border:none;width:40px;height:40px;border-radius:50%;font-size:1.5rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.qr-modal-close:hover{background:#e0e0e0;transform:rotate(90deg)}.qr-modal-content h2{margin-bottom:1.5rem;color:#1a1a1a;font-size:1.5rem;text-align:center}.qr-loading{text-align:center;padding:3rem;color:#718096;font-size:1.1rem}.qr-error{text-align:center;padding:2rem}.qr-error p{color:#e53e3e;margin-bottom:1rem}.retry-btn{background:#5c9eff;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;transition:background .2s}.retry-btn:hover{background:#4a8ae8}.qr-instructions{background:#f0f7ff;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border-left:4px solid #5c9eff}.qr-instructions p{margin:.5rem 0;color:#2d3748;font-size:.9rem}.qr-instructions strong{color:#5c9eff}.qr-media-option{background:#f0fff4;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border-left:4px solid #48bb78}.qr-media-option label{display:flex;align-items:center;cursor:pointer;margin-bottom:.5rem}.qr-media-option input[type=checkbox]{width:18px;height:18px;margin-right:.75rem;cursor:pointer;accent-color:#48bb78}.qr-media-option span{color:#2d3748;font-weight:500;font-size:.95rem}.qr-media-option small{color:#718096;font-size:.85rem;display:block;margin-left:2rem}.qr-code-container{display:flex;justify-content:center;padding:1.5rem;background:#fff;border-radius:12px;margin-bottom:1rem;border:2px solid #e1e8ed}.qr-timer{text-align:center;padding:1rem;background:#fff5f5;border-radius:8px;margin-bottom:1rem;color:#c53030;font-size:1rem}.qr-timer strong{font-size:1.2rem}.qr-uploaded-images{background:#f7fafc;padding:1rem;border-radius:8px;margin-top:1rem}.qr-uploaded-images h3{font-size:1rem;color:#2d3748;margin-bottom:.75rem}.qr-image-list{display:flex;flex-direction:column;gap:.5rem}.qr-image-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#fff;border-radius:6px;border:1px solid #e1e8ed}.qr-image-item span:first-child{color:#2d3748;font-size:.9rem}.qr-image-size{color:#718096;font-size:.85rem}.qr-url-display{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e1e8ed}.qr-url-display p{font-size:.85rem;color:#718096;margin-bottom:.5rem}.qr-url-display input{width:100%;padding:.75rem;border:1px solid #e1e8ed;border-radius:6px;font-size:.85rem;font-family:monospace;background:#f7fafc;color:#2d3748}.qr-url-display input:focus{outline:none;border-color:#5c9eff;background:#fff}.template-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.template-modal{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;width:90%;max-width:1000px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.template-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.template-modal-header h2{margin:0;font-size:20px;font-weight:600;display:flex;align-items:center;gap:10px}.template-modal-header .close-button{background:#fff3;border:none;border-radius:8px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:all .2s}.template-modal-header .close-button:hover{background:#ffffff4d;transform:scale(1.05)}.template-modal-content{padding:24px;overflow-y:auto;flex:1}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.template-card{background:#fff;border:2px solid #e5e7eb;border-radius:12px;overflow:hidden;cursor:pointer;transition:all .3s;box-shadow:0 2px 8px #0000000d}.template-card:hover{border-color:#667eea;box-shadow:0 8px 24px #667eea26;transform:translateY(-4px)}.template-preview{width:100%;height:200px;background:#f9fafb;display:flex;align-items:center;justify-content:center;padding:16px;border-bottom:2px solid #e5e7eb}.template-svg{width:100%;height:100%;border-radius:8px;box-shadow:0 2px 8px #0000001a}.template-info{padding:16px}.template-info h3{margin:0 0 8px;font-size:16px;font-weight:600;color:#1f2937}.template-info p{margin:0;font-size:13px;color:#6b7280;line-height:1.5}.template-modal-content::-webkit-scrollbar{width:8px}.template-modal-content::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.template-modal-content::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.template-modal-content::-webkit-scrollbar-thumb:hover{background:#5568d3}@media(max-width:768px){.template-modal{width:95%;max-height:85vh}.template-grid{grid-template-columns:1fr}.template-modal-header{padding:16px 20px}.template-modal-content{padding:16px}}.media-library-modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.media-library-modal{background:#fff;border-radius:12px;width:90%;max-width:1200px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.media-library-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:2px solid #e1e8ed;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:12px 12px 0 0}.media-library-modal-header h2{margin:0;display:flex;align-items:center;gap:.75rem;font-size:1.5rem;font-weight:600}.media-library-modal-header .close-button{background:#fff3;border:none;width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:all .2s}.media-library-modal-header .close-button:hover{background:#ffffff4d;transform:rotate(90deg)}.media-library-modal-content{display:flex;gap:2rem;padding:2rem;flex:1;overflow:hidden}.media-library-section{flex:0 0 40%;display:flex;flex-direction:column;border-right:2px solid #e1e8ed;padding-right:2rem}.media-library-section h3{margin:0 0 1rem;font-size:1.1rem;color:#2d3748;font-weight:600}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:1rem;overflow-y:auto;flex:1;padding:.5rem}.media-grid::-webkit-scrollbar{width:8px}.media-grid::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.media-grid::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.media-grid::-webkit-scrollbar-thumb:hover{background:#a0aec0}.empty-library{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:3rem 1rem;color:#a0aec0}.empty-library p{margin:0;font-size:.95rem}.media-item{position:relative;aspect-ratio:1;border:2px solid #e1e8ed;border-radius:8px;overflow:hidden;cursor:pointer;transition:all .2s;background:#f7fafc}.media-item:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea33}.media-item.selected{border-color:#667eea;border-width:3px;box-shadow:0 0 0 3px #667eea33}.media-item img{width:100%;height:100%;object-fit:cover}.selected-indicator{position:absolute;top:.5rem;right:.5rem;background:#667eea;color:#fff;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0003}.delete-media-btn{position:absolute;top:.5rem;left:.5rem;background:#ef4444e6;color:#fff;border:none;width:26px;height:26px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:all .2s}.media-item:hover .delete-media-btn{opacity:1}.delete-media-btn:hover{background:#dc2626;transform:scale(1.1)}.media-info{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);color:#fff;padding:.5rem;font-size:.75rem;display:flex;flex-direction:column;gap:.2rem;opacity:0;transition:opacity .2s}.media-item:hover .media-info{opacity:1}.media-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.media-size{font-size:.7rem;opacity:.8}.upload-section{flex:0 0 calc(60% - 2rem);display:flex;flex-direction:column;gap:1rem}.upload-section h3{margin:0;font-size:1.1rem;color:#2d3748;font-weight:600}.upload-dropzone{flex:1;border:3px dashed #cbd5e0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;cursor:pointer;transition:all .3s;background:#f7fafc;padding:2rem;min-height:300px}.upload-dropzone:hover{border-color:#667eea;background:#f0f4ff}.upload-dropzone.has-file{border-style:solid;border-color:#48bb78;background:#f0fff4}.preview-container{position:relative;max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center}.preview-container img{max-width:100%;max-height:250px;object-fit:contain;border-radius:8px;box-shadow:0 4px 12px #0000001a}.preview-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);color:#fff;padding:1rem;border-radius:0 0 8px 8px}.preview-overlay p{margin:0;font-size:.9rem;font-weight:500}.upload-text{margin:0;font-size:1.1rem;font-weight:500;color:#2d3748}.upload-hint{margin:0;font-size:.9rem;color:#718096}.save-to-library-checkbox{display:flex;align-items:center;gap:.75rem;padding:1rem;background:#f7fafc;border:2px solid #e1e8ed;border-radius:8px;cursor:pointer;transition:all .2s;-webkit-user-select:none;user-select:none}.save-to-library-checkbox:hover{background:#edf2f7;border-color:#cbd5e0}.save-to-library-checkbox input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#667eea}.save-to-library-checkbox span{font-size:.95rem;font-weight:500;color:#2d3748}.media-library-modal-footer{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem 2rem;border-top:2px solid #e1e8ed;background:#f7fafc;border-radius:0 0 12px 12px}.media-library-modal-footer button{padding:.75rem 2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;border:none}.btn-cancel{background:#fff;color:#4a5568;border:2px solid #e1e8ed!important}.btn-cancel:hover:not(:disabled){background:#edf2f7;border-color:#cbd5e0!important}.btn-complete{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-complete:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.btn-complete:disabled,.btn-cancel:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.media-library-modal-content{flex-direction:column;gap:1.5rem}.media-library-section{flex:0 0 auto;border-right:none;border-bottom:2px solid #e1e8ed;padding-right:0;padding-bottom:1.5rem}.upload-section{flex:1}.media-grid{max-height:200px}}.project-list-container{display:flex;flex-direction:column;gap:1rem}.project-list-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:.75rem;border-bottom:2px solid #e1e8ed}.project-list-header h3{margin:0;font-size:1rem;font-weight:700;color:#2d3748;display:flex;align-items:center;gap:.5rem}.project-count{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:.75rem;font-weight:700;padding:.25rem .5rem;border-radius:12px;min-width:24px;text-align:center}.project-list-loading,.project-list-error{padding:2rem 1rem;text-align:center;color:#718096}.spinner{border:3px solid #e1e8ed;border-top:3px solid #667eea;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.project-list-empty{padding:3rem 1rem;text-align:center;color:#718096;display:flex;flex-direction:column;align-items:center;gap:.75rem}.project-list-empty p{margin:0;font-weight:600;font-size:.95rem}.project-list-empty small{font-size:.8rem;color:#a0aec0;max-width:200px;line-height:1.4}.project-list-items{display:flex;flex-direction:column;gap:.75rem;max-height:400px;overflow-y:auto;padding-right:.5rem}.project-list-items::-webkit-scrollbar{width:6px}.project-list-items::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.project-list-items::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px}.project-list-items::-webkit-scrollbar-thumb:hover{background:#a0aec0}.project-item{background:#fff;border:2px solid #e1e8ed;border-radius:8px;padding:.75rem;cursor:pointer;transition:all .2s}.project-item:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea26;transform:translateY(-2px)}.project-item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.project-item-header h4{margin:0;font-size:.95rem;font-weight:600;color:#2d3748;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-delete-btn{background:transparent;border:none;color:#cbd5e0;cursor:pointer;padding:.25rem;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}.project-delete-btn:hover{background:#fee;color:#e53e3e}.project-item-meta{display:flex;align-items:center;justify-content:space-between;font-size:.8rem;color:#718096;gap:.5rem}.project-item-date{display:flex;align-items:center;gap:.25rem}.project-item-count{background:#f7fafc;padding:.2rem .5rem;border-radius:4px;font-weight:600;color:#4a5568;font-size:.75rem}.toolbar-content{display:flex;flex-direction:column;gap:1.5rem}.toolbar-section{border-bottom:1px solid #e1e8ed;padding-bottom:1.5rem}.toolbar-section:last-child{border-bottom:none}.toolbar-section h3{font-size:.95rem;color:#1a1a1a;margin-bottom:1rem;font-weight:600}.dropzone{border:2px dashed #cbd5e0;border-radius:8px;padding:2rem 1rem;text-align:center;cursor:pointer;transition:all .2s;background:#f7fafc;margin-bottom:1rem}.dropzone:hover,.dropzone.active{border-color:#5c9eff;background:#f0f7ff}.dropzone p{color:#718096;font-size:.9rem;margin:0}.toolbar-btn{width:100%;padding:.7rem;background:#fff;border:1px solid #e1e8ed;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s;margin-bottom:.5rem;text-align:left}.toolbar-btn:hover:not(:disabled){background:#f7fafc;border-color:#5c9eff}.toolbar-btn:disabled{opacity:.5;cursor:not-allowed;background:#f1f5f9}.file-upload-label{display:block;width:100%;padding:.7rem;background:#fff;border:1px solid #e1e8ed;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s;text-align:left}.file-upload-label:hover{background:#f7fafc;border-color:#5c9eff}.qr-container{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;background:#fff;border-radius:8px;border:1px solid #e1e8ed;margin:1rem 0}.qr-url{font-size:.75rem;color:#718096;word-break:break-all;text-align:center}.adjustment-control{margin-bottom:1rem}.adjustment-control label{display:block;font-size:.85rem;color:#4a5568;margin-bottom:.3rem;font-weight:500}.adjustment-control input[type=range]{width:100%;margin-bottom:.3rem}.adjustment-control span{font-size:.85rem;color:#5c9eff;font-weight:600}.cake-info{background:#f7fafc;padding:1rem;border-radius:6px}.cake-info p{font-size:.85rem;color:#4a5568;margin-bottom:.4rem}.cake-info p:last-child{margin-bottom:0}.cake-info strong{color:#1a1a1a}.toolbar-footer{margin-top:auto;padding-top:1rem;border-top:1px solid #e1e8ed;display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center}.toolbar-footer-logo{height:28px;width:auto;object-fit:contain}.toolbar-footer-text{display:flex;flex-direction:column;gap:.1rem}.toolbar-footer-company{font-size:.8rem;font-weight:600;color:#2d3748;line-height:1.2}.toolbar-footer-copyright{font-size:.7rem;color:#718096;line-height:1.2}.image-fitting-controls{background:#fff;padding:1rem;border-radius:8px;border:1px solid #e1e8ed;margin-top:1rem;overflow-x:hidden;max-width:100%}.fitting-header-tabs{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid #f0f7ff}.fitting-header-tabs h4{margin:0;color:#2d3748;font-size:.95rem;font-weight:600}.mode-tabs{display:flex;gap:.25rem;background:#f7fafc;padding:.25rem;border-radius:6px}.mode-tab{padding:.4rem .8rem;background:transparent;color:#4a5568;border:none;border-radius:4px;cursor:pointer;font-size:.8rem;font-weight:500;transition:all .2s}.mode-tab:hover{background:#fff}.mode-tab.active{background:#5c9eff;color:#fff}.quick-mode{display:flex;flex-direction:column;gap:.75rem}.fitting-row{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.fit-btn{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.75rem .5rem;border:2px solid #e1e8ed;background:#fff;border-radius:6px;cursor:pointer;transition:all .2s}.fit-btn:hover{border-color:#5c9eff;background:#f0f7ff;transform:translateY(-2px)}.fit-btn.fit-btn-primary{border-color:#5c9eff;background:#f0f7ff}.fit-btn.fit-btn-primary:hover{background:#5c9eff}.fit-btn.fit-btn-primary:hover .fit-label{color:#fff}.fit-btn.active{border-color:#667eea;background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 4px 12px #667eea66}.fit-btn.active .fit-icon,.fit-btn.active .fit-label{color:#fff}.fit-icon{font-size:1.5rem}.fit-label{font-size:.75rem;font-weight:600;color:#2d3748}.quick-section{display:flex;flex-direction:column;gap:.5rem}.section-label{font-size:.8rem;font-weight:600;color:#4a5568;margin:0}.transform-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}.icon-btn-small{padding:.6rem;border:2px solid #e1e8ed;background:#fff;border-radius:6px;cursor:pointer;font-size:1.3rem;transition:all .2s}.icon-btn-small:hover{border-color:#5c9eff;background:#f0f7ff;transform:scale(1.1)}.position-grid-compact{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem}.scale-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:.4rem}.scale-btn{padding:.6rem .3rem;border:2px solid #e1e8ed;background:#fff;border-radius:6px;cursor:pointer;font-size:.8rem;font-weight:600;color:#2d3748;transition:all .2s}.scale-btn:hover{border-color:#48bb78;background:#e6fffa;transform:translateY(-2px);box-shadow:0 2px 8px #48bb784d}.pos-btn{padding:.7rem;border:2px solid #e1e8ed;background:#fff;border-radius:6px;cursor:pointer;font-size:1.2rem;transition:all .2s}.pos-btn:hover{border-color:#5c9eff;background:#f0f7ff;transform:scale(1.1)}.advanced-mode{display:flex;flex-direction:column;gap:.75rem}.advanced-section{display:flex;flex-direction:column;gap:.5rem}.fitting-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.fitting-btn-adv{display:flex;align-items:center;gap:.5rem;padding:.6rem;border:2px solid #e1e8ed;background:#fff;border-radius:6px;cursor:pointer;transition:all .2s;text-align:left}.fitting-btn-adv:hover,.fitting-btn-adv.fitting-btn-primary{border-color:#5c9eff;background:#f0f7ff}.fitting-btn-adv.fitting-btn-primary:hover{background:#5c9eff}.fitting-btn-adv.fitting-btn-primary:hover .fitting-btn-title,.fitting-btn-adv.fitting-btn-primary:hover .fitting-btn-desc{color:#fff}.fitting-btn-adv.active{border-color:#667eea;background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 4px 12px #667eea66}.fitting-btn-adv.active .fitting-btn-icon,.fitting-btn-adv.active .fitting-btn-title,.fitting-btn-adv.active .fitting-btn-desc{color:#fff}.fitting-btn-icon{font-size:1.3rem;flex-shrink:0}.fitting-btn-text{display:flex;flex-direction:column}.fitting-btn-title{font-size:.8rem;font-weight:600;color:#2d3748}.fitting-btn-desc{font-size:.7rem;color:#718096}.transform-row-adv{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem}.icon-btn-adv{padding:.5rem;border:2px solid #e1e8ed;background:#fff;border-radius:6px;cursor:pointer;font-size:.75rem;font-weight:500;color:#2d3748;transition:all .2s}.icon-btn-adv:hover{border-color:#5c9eff;background:#f0f7ff}.sliders{display:flex;flex-direction:column;gap:.5rem}.slider-item{display:flex;flex-direction:column;gap:.3rem}.slider-item label{font-size:.75rem;color:#4a5568;font-weight:500}.slider-item input[type=range],.scale-slider{width:100%;height:6px;border-radius:3px;background:#e1e8ed;outline:none;-webkit-appearance:none}.slider-item input[type=range]::-webkit-slider-thumb,.scale-slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#5c9eff;cursor:pointer;transition:all .2s}.slider-item input[type=range]::-webkit-slider-thumb:hover,.scale-slider::-webkit-slider-thumb:hover{background:#4a8ae8;transform:scale(1.2)}.slider-item input[type=range]::-moz-range-thumb,.scale-slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#5c9eff;cursor:pointer;border:none;transition:all .2s}.slider-item input[type=range]::-moz-range-thumb:hover,.scale-slider::-moz-range-thumb:hover{background:#4a8ae8;transform:scale(1.2)}.apply-btn{width:100%;padding:.7rem;background:#48bb78;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:600;transition:all .2s}.apply-btn:hover{background:#38a169;transform:scale(1.02)}@media(max-width:768px){.fitting-grid{grid-template-columns:1fr}.transform-row-adv{grid-template-columns:repeat(2,1fr)}}.numpad-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.numpad-modal{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;width:320px;max-width:90vw;overflow:hidden;animation:numpadSlideUp .3s ease-out}@keyframes numpadSlideUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}.numpad-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.numpad-header h3{margin:0;font-size:1.1rem;font-weight:600}.numpad-close{background:#fff3;border:none;color:#fff;font-size:1.8rem;width:32px;height:32px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1;padding:0}.numpad-close:hover{background:#ffffff4d;transform:rotate(90deg)}.numpad-display{padding:1.5rem;background:#f7fafc;border-bottom:2px solid #e1e8ed;min-height:60px;display:flex;align-items:center;justify-content:flex-end;gap:.5rem}.numpad-display-value{font-size:2rem;font-weight:600;color:#2d3748;font-family:Courier New,monospace}.numpad-display-unit{font-size:1.2rem;color:#718096;font-weight:500}.numpad-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e1e8ed;padding:1px}.numpad-btn{background:#fff;border:none;padding:1.5rem;font-size:1.5rem;font-weight:600;color:#2d3748;cursor:pointer;transition:all .15s;-webkit-user-select:none;user-select:none}.numpad-btn:hover{background:#f0f7ff;color:#667eea}.numpad-btn:active{background:#e1e8ed;transform:scale(.95)}.numpad-btn-backspace{background:#fff5f5;color:#e53e3e}.numpad-btn-backspace:hover{background:#fed7d7}.numpad-actions{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e1e8ed;padding:1px}.numpad-action-btn{padding:1rem;border:none;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.numpad-clear{background:#fff5f5;color:#e53e3e}.numpad-clear:hover{background:#fed7d7;transform:translateY(-2px);box-shadow:0 4px 12px #e53e3e4d}.numpad-submit{background:linear-gradient(135deg,#48bb78,#38a169);color:#fff}.numpad-submit:hover{background:linear-gradient(135deg,#38a169,#2f855a);transform:translateY(-2px);box-shadow:0 4px 12px #48bb7866}.numpad-submit:active,.numpad-clear:active{transform:scale(.98)}@media(max-width:480px){.numpad-modal{width:100%;max-width:100vw;border-radius:16px 16px 0 0;position:fixed;bottom:0}@keyframes numpadSlideUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}}.properties-content{display:flex;flex-direction:column;gap:1.25rem;padding:4px}.properties-content h3{font-size:1.1rem;color:#1a202c;margin-bottom:0;font-weight:700;padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:12px;box-shadow:0 4px 12px #667eea4d;text-align:center;letter-spacing:.5px}.no-selection{display:flex;align-items:center;justify-content:center;height:200px;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-radius:12px;text-align:center;border:2px dashed #cbd5e0}.no-selection p{color:#4a5568;font-size:.95rem;font-weight:500}.prop-section{border:2px solid #e2e8f0;border-radius:12px;padding:1.25rem;background:#fff;box-shadow:0 2px 8px #0000000d;transition:all .2s ease}.prop-section:hover{border-color:#cbd5e0;box-shadow:0 4px 12px #00000014}.prop-section h4{font-size:.95rem;color:#2d3748;margin-bottom:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding-bottom:.5rem;border-bottom:2px solid #e2e8f0}.prop-group{margin-bottom:1.1rem}.prop-group:last-child{margin-bottom:0}.prop-group label{display:block;font-size:.875rem;color:#4a5568;margin-bottom:.5rem;font-weight:600;letter-spacing:.3px}.prop-group input[type=number],.prop-group input[type=text],.prop-group select{width:100%;padding:.65rem .75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;background:#f7fafc;transition:all .2s ease;font-weight:500}.prop-group input[type=number]:hover,.prop-group input[type=text]:hover,.prop-group select:hover{border-color:#cbd5e0;background:#fff}.prop-group input[type=number]:focus,.prop-group input[type=text]:focus,.prop-group select:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.prop-group input[type=range]{width:100%;height:8px;border-radius:4px;background:linear-gradient(to right,#e2e8f0,#667eea);outline:none;-webkit-appearance:none}.prop-group input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#667eea;cursor:pointer;box-shadow:0 2px 6px #667eea66;transition:all .2s ease}.prop-group input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.15);background:#764ba2}.prop-group input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#667eea;cursor:pointer;border:none;box-shadow:0 2px 6px #667eea66}.color-picker-group{display:flex;gap:.75rem;align-items:center}.color-picker-group input[type=color]{width:55px;height:45px;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;padding:4px;transition:all .2s ease}.color-picker-group input[type=color]:hover{border-color:#667eea;transform:scale(1.05)}.color-picker-group input[type=text]{flex:1;padding:.65rem .75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.9rem;font-family:Courier New,monospace;font-weight:600;background:#f7fafc;transition:all .2s ease}.color-picker-group input[type=text]:focus{border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.delete-btn{width:100%;padding:.85rem;background:linear-gradient(135deg,#fc8181,#f56565);color:#fff;border:none;border-radius:10px;cursor:pointer;font-size:.95rem;font-weight:700;transition:all .2s ease;box-shadow:0 4px 10px #fc81814d;letter-spacing:.5px;text-transform:uppercase}.delete-btn:hover{background:linear-gradient(135deg,#f56565,#e53e3e);transform:translateY(-2px);box-shadow:0 6px 14px #fc818166}.delete-btn:active{transform:translateY(0)}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:#fff;padding:2rem;border-radius:12px;width:90%;max-width:500px;box-shadow:0 20px 60px #0000004d;position:relative}.modal-close-btn{position:absolute;top:1rem;right:1rem;background:#0000000d;border:none;border-radius:6px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#4a5568;transition:all .2s;z-index:10}.modal-close-btn:hover{background:#0000001a;color:#1a1a1a;transform:scale(1.05)}.config-with-preview{max-width:900px;display:flex;gap:2rem;padding:2.5rem}.config-form-section{flex:1}.config-preview-section{flex:1;display:flex;flex-direction:column}.config-preview-section h3{font-size:1.1rem;color:#2d3748;margin-bottom:1rem}.preview-canvas{flex:1;background:#f7fafc;border-radius:12px;padding:2rem;border:2px solid #e1e8ed}.preview-paper{background:#fff;border-radius:8px;padding:2rem;min-height:250px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0000001a;margin-bottom:1.5rem}.preview-shape{border:3px dashed #5c9eff;background:#5c9eff1a;display:flex;align-items:center;justify-content:center;position:relative;transition:all .3s ease}.preview-round{border-radius:50%}.preview-rectangle{flex-direction:column}.preview-label,.preview-label-w,.preview-label-h,.preview-label-r{font-size:.85rem;font-weight:600;color:#5c9eff;background:#fff;padding:.25rem .5rem;border-radius:4px;box-shadow:0 2px 4px #0000001a}.preview-label-w{position:absolute;top:-15px;left:50%;transform:translate(-50%)}.preview-label-h{position:absolute;left:-15px;top:50%;transform:translateY(-50%) rotate(-90deg)}.preview-label-r{position:absolute;bottom:-15px;right:-15px;font-size:.75rem}.preview-info{background:#fff;padding:1rem;border-radius:8px;border:1px solid #e1e8ed}.preview-info p{margin:.5rem 0;color:#4a5568;font-size:.9rem}.preview-info strong{color:#2d3748}@media(max-width:768px){.config-with-preview{flex-direction:column;max-width:500px}.preview-canvas{min-height:200px}}.modal-content h2{margin-bottom:1.5rem;color:#1a1a1a;font-size:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#4a5568;font-weight:500;font-size:.9rem}.shape-selector{display:flex;gap:.5rem}.shape-btn{flex:1;padding:1rem;border:2px solid #e1e8ed;background:#fff;border-radius:8px;cursor:pointer;font-size:1rem;transition:all .2s}.shape-btn:hover{border-color:#5c9eff;background:#f0f7ff}.shape-btn.active{border-color:#5c9eff;background:#5c9eff;color:#fff}.form-group input[type=number],.form-group input[type=range]{width:100%;padding:.6rem;border:1px solid #e1e8ed;border-radius:6px;font-size:1rem}.form-group input[type=number]{margin-bottom:.5rem}.form-group input[type=range]{padding:0;margin-bottom:.3rem}.value-display{color:#5c9eff;font-weight:600;font-size:.9rem}.modal-actions{margin-top:2rem;display:flex;gap:.5rem;justify-content:flex-end}.btn-primary{background:#5c9eff;color:#fff;border:none;padding:.8rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.btn-primary:hover{background:#4a8ae8}.save-project-modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.save-project-modal{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;width:90%;max-width:450px;max-height:90vh;overflow:hidden;animation:modalSlideIn .2s ease-out}@keyframes modalSlideIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}.save-project-modal-header{padding:1.5rem;border-bottom:2px solid #e1e8ed;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.save-project-modal-header h2{margin:0;font-size:1.25rem;display:flex;align-items:center;gap:.5rem}.save-project-modal-header .close-button{background:#fff3;border:none;border-radius:6px;padding:.5rem;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s}.save-project-modal-header .close-button:hover:not(:disabled){background:#ffffff4d}.save-project-modal-header .close-button:disabled{opacity:.5;cursor:not-allowed}.save-project-modal-content{padding:1.5rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;font-weight:600;margin-bottom:.5rem;color:#2d3748;font-size:.95rem}.form-group input{width:100%;padding:.75rem;border:2px solid #e1e8ed;border-radius:8px;font-size:1rem;transition:all .2s;box-sizing:border-box}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input:disabled{background:#f7fafc;cursor:not-allowed}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem}.modal-actions button{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .2s;border:none}.btn-cancel{background:#e1e8ed;color:#4a5568}.btn-cancel:hover:not(:disabled){background:#cbd5e0}.btn-save{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-save:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.btn-save:disabled,.btn-cancel:disabled{opacity:.6;cursor:not-allowed;transform:none}.instructions-modal-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;padding:2rem}.instructions-modal{background:#fff;border-radius:16px;width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.instructions-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 2rem;border-bottom:2px solid #e1e8ed;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:16px 16px 0 0}.instructions-modal-header h2{font-size:1.5rem;font-weight:600;margin:0;display:flex;align-items:center;gap:.75rem}.instructions-modal-header .close-button{background:#fff3;border:none;color:#fff;width:36px;height:36px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.instructions-modal-header .close-button:hover{background:#ffffff4d;transform:scale(1.05)}.instructions-modal-content{flex:1;overflow-y:auto;padding:2rem}.instruction-section{margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid #e1e8ed}.instruction-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.instruction-section h3{font-size:1.25rem;font-weight:600;color:#2d3748;margin:0 0 1rem;display:flex;align-items:center;gap:.5rem}.instruction-section p{color:#4a5568;line-height:1.6;margin-bottom:1rem}.instruction-section ol,.instruction-section ul{margin:0;padding-left:1.5rem}.instruction-section li{color:#4a5568;line-height:1.8;margin-bottom:.5rem}.instruction-section li strong{color:#2d3748;font-weight:600}.navigation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-top:1rem}.navigation-card{background:#f7fafc;border:2px solid #e1e8ed;border-radius:12px;padding:1.5rem}.navigation-card h4{font-size:1rem;font-weight:600;color:#2d3748;margin:0 0 1rem;display:flex;align-items:center;gap:.5rem}.navigation-card ul{margin:0;padding-left:1.25rem}.navigation-card li{margin-bottom:.75rem;line-height:1.6}.shortcuts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;margin-top:1rem}.shortcut-item{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem 1rem;background:#f7fafc;border:1px solid #e1e8ed;border-radius:8px}.shortcut-item kbd{background:#fff;border:2px solid #cbd5e0;border-radius:6px;padding:.25rem .5rem;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.8rem;font-weight:600;color:#2d3748;box-shadow:0 2px #cbd5e0;min-width:32px;text-align:center;white-space:nowrap;flex-shrink:0}.shortcut-item span{color:#4a5568;font-size:.875rem;line-height:1.5;flex:1;word-wrap:break-word}.tips-section{background:linear-gradient(135deg,#fff7ed,#fffbeb);border:2px solid #fed7aa;border-radius:12px;padding:1.5rem}.tips-section h3{color:#c05621}.tips-section li{color:#7c2d12}.instructions-modal-footer{padding:1.5rem 2rem;border-top:2px solid #e1e8ed;display:flex;justify-content:flex-end;background:#f7fafc;border-radius:0 0 16px 16px}.btn-close{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #667eea66}.btn-close:hover{transform:translateY(-2px);box-shadow:0 6px 16px #667eea80}.instructions-modal-content::-webkit-scrollbar{width:8px}.instructions-modal-content::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.instructions-modal-content::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.instructions-modal-content::-webkit-scrollbar-thumb:hover{background:#a0aec0}@media(max-width:768px){.instructions-modal{max-width:100%;max-height:95vh;margin:1rem}.instructions-modal-header,.instructions-modal-content,.instructions-modal-footer{padding:1.25rem}.navigation-grid,.shortcuts-grid{grid-template-columns:1fr}}.language-switcher-dropdown{position:relative}.language-switcher-button{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;color:#2d3748;transition:all .2s ease;min-width:140px;justify-content:space-between}.language-switcher-button:hover{border-color:#5c9eff;background:#f7fafc}.language-switcher-button:focus{outline:none;border-color:#5c9eff;box-shadow:0 0 0 3px #5c9eff1a}.language-switcher-button .flag{font-size:20px;line-height:1}.language-switcher-button .language-name{flex:1;text-align:left}.language-switcher-button .arrow{font-size:10px;transition:transform .2s ease;color:#718096}.language-switcher-button .arrow.open{transform:rotate(180deg)}.language-dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;background:#fff;border:2px solid #e2e8f0;border-radius:8px;box-shadow:0 4px 12px #0000001a;min-width:140px;z-index:1000;overflow:hidden;animation:dropdown-fade-in .15s ease}@keyframes dropdown-fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.language-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;background:transparent;border:none;cursor:pointer;font-size:14px;font-weight:500;color:#2d3748;text-align:left;transition:background .15s ease}.language-dropdown-item:hover{background:#f7fafc}.language-dropdown-item:active{background:#edf2f7}.language-dropdown-item .flag{font-size:20px;line-height:1}.language-dropdown-item .language-name{flex:1}.pwa-install-prompt{position:fixed;bottom:20px;left:50%;transform:translate(-50%);z-index:10000;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translate(-50%) translateY(20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.pwa-prompt-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.5rem;border-radius:16px;box-shadow:0 10px 40px #0000004d;display:flex;align-items:center;gap:1rem;max-width:500px;min-width:320px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.pwa-prompt-icon{font-size:3rem;flex-shrink:0}.pwa-prompt-text{flex:1}.pwa-prompt-text h3{margin:0 0 .5rem;font-size:1.2rem;font-weight:700}.pwa-prompt-text p{margin:0 0 .75rem;font-size:.9rem;opacity:.95}.pwa-benefits{margin:0;padding:0;list-style:none;font-size:.85rem;opacity:.9}.pwa-benefits li{margin:.25rem 0}.pwa-prompt-actions{display:flex;gap:.5rem;align-items:center;flex-shrink:0}.pwa-install-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#fff;color:#667eea;border:none;border-radius:12px;font-weight:700;font-size:1rem;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #0003}.pwa-install-btn:hover{transform:scale(1.05);box-shadow:0 6px 16px #0000004d}.pwa-install-btn:active{transform:scale(.98)}.pwa-dismiss-btn{display:flex;align-items:center;justify-content:center;padding:.75rem;background:#fff3;color:#fff;border:none;border-radius:12px;cursor:pointer;transition:all .2s}.pwa-dismiss-btn:hover{background:#ffffff4d;transform:scale(1.1)}@media(max-width:768px){.pwa-install-prompt{bottom:10px;left:10px;right:10px;transform:none}.pwa-prompt-content{flex-direction:column;text-align:center;min-width:auto}.pwa-prompt-actions{width:100%;justify-content:center}.pwa-install-btn{flex:1}}.app{width:100vw;height:100vh;display:flex;flex-direction:column;background:#f5f7fa}.app-header{background:#fff;padding:.5rem 1rem;border-bottom:1px solid #e1e8ed;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 4px #0000000d;max-height:60px}.app-header h1{font-size:1.5rem;color:#1a1a1a;font-weight:600}.config-btn{background:#5c9eff;color:#fff;border:none;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background .2s}.config-btn:hover{background:#4a8ae8}.app-layout{flex:1;display:flex;overflow:hidden}.toolbar{width:280px;background:#fff;border-right:1px solid #e1e8ed;overflow-y:auto;padding:1rem;position:relative;transition:width .3s ease,padding .3s ease,visibility .3s ease}.toolbar.collapsed{width:0;min-width:0;padding:0;border:none;overflow:hidden}.canvas-container{flex:1;display:flex;align-items:center;justify-content:center;background:#f5f7fa;overflow:hidden}.properties-panel{width:380px;background:#fff;border-left:1px solid #e1e8ed;overflow-y:auto;padding:1rem;position:relative;transition:width .3s ease,padding .3s ease,visibility .3s ease}.properties-panel.collapsed{width:0;min-width:0;padding:0;border:none;overflow:hidden}.sidebar-toggle-btn{position:fixed;top:50%;transform:translateY(-50%);background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#374151;border:2px solid #e1e8ed;width:32px;height:80px;border-radius:0;cursor:pointer;font-size:1rem;transition:all .3s ease;z-index:40;box-shadow:0 2px 8px #00000014;display:flex;align-items:center;justify-content:center;opacity:.85;writing-mode:vertical-rl;text-orientation:mixed;font-size:.75rem;letter-spacing:1px;font-weight:600}.sidebar-toggle-btn:hover{opacity:1;transform:translateY(-50%) scale(1.05);box-shadow:0 6px 16px #00000026}.toolbar-toggle{left:280px;border-left:none;border-radius:0 8px 8px 0;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;border-color:#f59e0b}.toolbar-toggle:hover{background:linear-gradient(135deg,#f59e0b,#d97706);border-color:#d97706}.toolbar.collapsed+.toolbar-toggle,.toolbar.collapsed~* .toolbar-toggle{left:0}.properties-toggle{right:380px;border-right:none;border-radius:8px 0 0 8px;background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;border-color:#7c3aed}.properties-toggle:hover{background:linear-gradient(135deg,#7c3aed,#6d28d9);border-color:#6d28d9}.properties-panel.collapsed~.properties-toggle{right:0}.toolbar::-webkit-scrollbar,.properties-panel::-webkit-scrollbar{width:8px}.toolbar::-webkit-scrollbar-track,.properties-panel::-webkit-scrollbar-track{background:#f5f7fa}.toolbar::-webkit-scrollbar-thumb,.properties-panel::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.toolbar::-webkit-scrollbar-thumb:hover,.properties-panel::-webkit-scrollbar-thumb:hover{background:#a0aec0}.app-footer{background:#fff;border-top:1px solid #e1e8ed;padding:.4rem 1rem;display:flex;justify-content:flex-start;align-items:center;box-shadow:0 -2px 4px #0000000d;max-height:45px}.footer-content{display:flex;align-items:center;gap:.6rem}.footer-logo{height:28px;width:auto;object-fit:contain}.footer-text{display:flex;flex-direction:column;gap:.1rem}.footer-company{font-size:.8rem;font-weight:600;color:#2d3748;line-height:1.2}.footer-copyright{font-size:.7rem;color:#718096;line-height:1.2}.logo-text{display:block}@media(max-width:768px){.logo-text{display:none}}@media(max-width:768px){.app-footer{padding:.35rem .75rem;max-height:40px}.footer-logo{height:24px}.footer-company{font-size:.75rem}.footer-copyright{font-size:.65rem}.footer-content{gap:.5rem}}@keyframes spin{to{transform:rotate(360deg)}}.app-loading{display:flex;justify-content:center;align-items:center;height:100vh;flex-direction:column;gap:20px;background:#f5f7fa}.app-loading .spinner{width:50px;height:50px;border:4px solid #e0e0e0;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.app-loading p{color:#666;font-size:1rem}
