:root { --primary: #6366f1; --primary-dark: #4f46e5; --secondary: #8b5cf6; --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-tertiary: #f1f5f9; --text-primary: #1e293b; --text-secondary: #64748b; --border: #e2e8f0; --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1); --radius: 12px; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --sidebar-width: 380px; } /* Main Layout */ .main-container { display: flex; flex: 1; overflow: hidden; height: 100vh; } /* Sidebar */ .sidebar { width: var(--sidebar-width); background: var(--bg-primary); border-right: 1px solid var(--border); overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; flex-shrink: 0; } .sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-track { background: transparent; } .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } .sidebar-section { background: var(--bg-secondary); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); } .section-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } /* URL Input Section */ .url-input-group { display: flex; flex-direction: column; gap: 1rem; } .url-input-wrapper { position: relative; } .url-input { width: 100%; padding: 0.875rem 1rem 0.875rem 3rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1rem; background: var(--bg-primary); color: var(--text-primary); transition: var(--transition); } .url-input:focus { outline: none; border-color: var(--primary); } .url-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); } .btn { padding: 0.875rem 1rem; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; } .btn-primary { background: #000; color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--bg-primary); } /* Device Presets */ .device-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } .device-card { background: var(--bg-primary); border: 2px solid var(--border); border-radius: var(--radius); padding: 0.75rem; cursor: pointer; transition: var(--transition); text-align: center; } .device-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); } .device-card.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: var(--primary); color: white; } .device-icon { font-size: 1.5rem; margin-bottom: 0.25rem; } .device-name { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; } .device-size { font-size: 0.75rem; opacity: 0.8; } /* Custom Size Controls */ .custom-size { display: flex; flex-direction: column; gap: 1rem; } .size-inputs { display: flex; gap: 0.75rem; } .size-input-group { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } .size-input { width: 100%; padding: 0.5rem; border: 2px solid var(--border); border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); text-align: center; } .size-input:focus { outline: none; border-color: var(--primary); } .orientation-toggle { display: flex; gap: 0.5rem; background: var(--bg-tertiary); padding: 4px; border-radius: 8px; } .orientation-btn { flex: 1; padding: 0.5rem; border: none; background: transparent; color: var(--text-secondary); border-radius: 6px; cursor: pointer; transition: var(--transition); font-size: 0.875rem; } .orientation-btn.active { background: var(--bg-primary); color: var(--primary); } /* Quick Actions */ .quick-actions { display: flex; flex-direction: column; gap: 0.5rem; } .quick-action-btn { padding: 0.75rem; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-primary); } .quick-action-btn:hover { background: var(--primary); color: white; border-color: var(--primary); } /* Preview Container - Full Space */ .preview-container { flex: 1; display: block; flex-direction: column; overflow: hidden; height: 100%; } .preview-header { background: var(--bg-primary); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; flex-shrink: 0; } .preview-info { display: flex; align-items: center; gap: 1rem; } .preview-size { background: var(--bg-tertiary); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; color: #000; } .preview-actions { display: flex; gap: 0.5rem; align-items: center; } .action-btn { background: #002a54;color: #fff; border-radius: 8px; padding: 0.5rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; } .action-btn:hover { background: var(--primary); color: white; } /* Iframe Container - Full Space No Scroll */ .iframe-container { flex: 1; background: var(--bg-tertiary); display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; width: 100%; height: 100%; } .device-frame { background: white; border-radius: 12px; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); overflow: hidden; transition: var(--transition); position: relative; display: flex; align-items: center; justify-content: center; } .device-frame.full-width { width: 100% !important; height: 100% !important; max-width: none; max-height: none; border-radius: 0; } .device-frame iframe { display: block; border: none; width: 100%; height: 100%; overflow: hidden; } /* Mobile device specific styling */ .device-frame.mobile-frame { overflow: hidden; } .device-frame.mobile-frame iframe { width: 100%; height: 100%; overflow: hidden; } /* Remove device frame decoration for mobile devices */ .device-frame.mobile-frame::before { display: none; } .device-frame::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 20px; background: var(--bg-tertiary); border-radius: 0 0 10px 10px; z-index: 10; } .device-frame.full-width::before { display: none; } /* Empty State */ .empty-state { text-align: center; padding: 3rem; color: var(--text-secondary); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; } /* Zoom Controls */ .zoom-controls { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-tertiary); padding: 0.25rem; border-radius: 8px; } .zoom-btn { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; cursor: pointer; transition: var(--transition); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .zoom-btn:hover { background: var(--primary); color: white; } .zoom-level { padding: 0 0.75rem; font-weight: 600; color: #000; min-width: 50px; text-align: center; } /* Width Indicator */ .width-indicator { position: absolute; top: 1rem; right: 1rem; background: var(--bg-primary); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow); z-index: 10; } /* Toast Notification */ .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; transform: translateX(400px); transition: transform 0.3s ease; z-index: 1000; } .toast.show { transform: translateX(0); } .toast.success .toast-icon { color: #10b981; } .toast.error .toast-icon { color: #ef4444; } /* Mobile Toggle */ .mobile-toggle { display: none; position: fixed; bottom: 5rem; left: 2rem; background: var(--primary); color: white; border: none; border-radius: 50%; width: 56px; height: 56px; font-size: 1.5rem; box-shadow: var(--shadow-lg); z-index: 100; cursor: pointer; } /* Responsive Design */ @media (max-width: 1024px) { .main-container { position: relative; } .sidebar { position: fixed; left: 0; top: 0; height: 100vh; z-index: 50; transform: translateX(-100%); transition: transform 0.3s ease; } .sidebar.open { transform: translateX(0); } .mobile-toggle { display: flex; align-items: center; justify-content: center; } .preview-container { width: 100%; } } /* Loading Animation */ .loading { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--border); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Hide all scrollbars */ ::-webkit-scrollbar { display: none; } * { -ms-overflow-style: none; scrollbar-width: none; } /* Custom Size Options */ .custom-size-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.5rem; } .size-preset { padding: 0.5rem; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; font-size: 0.75rem; text-align: center; cursor: pointer; transition: var(--transition); } .size-preset:hover { background: var(--bg-tertiary); border-color: var(--primary); } /* Device Categories */ .device-categories { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; } .category-btn { padding: 0.5rem 0.75rem; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 20px; font-size: 0.75rem; cursor: pointer; transition: var(--transition); } .category-btn.active { background: var(--primary); color: white; border-color: var(--primary); }