/* Custom styles for CodeCanvas */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); min-height: 100vh; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 5px; } ::-webkit-scrollbar-thumb { background: rgba(244, 63, 94, 0.3); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: rgba(244, 63, 94, 0.5); } /* Glass effect */ .glass-effect { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } /* Gradient text */ .gradient-text { background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Pulse animation for active elements */ @keyframes pulse-rose { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); } } .pulse-rose { animation: pulse-rose 2s infinite; } /* Loading spinner */ .spinner { width: 40px; height: 40px; border: 3px solid rgba(244, 63, 94, 0.1); border-top-color: #f43f5e; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Hover effects */ .hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; } .hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); } /* Code block styling */ .code-block { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-left: 4px solid #f43f5e; padding: 1.5rem; border-radius: 0 1rem 1rem 0; position: relative; overflow: hidden; } .code-block::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #f43f5e, transparent); } /* Responsive adjustments */ @media (max-width: 768px) { .container { padding-left: 1rem; padding-right: 1rem; } .mobile-menu-open { transform: translateX(0); } .mobile-menu-closed { transform: translateX(-100%); } } /* Focus styles for accessibility */ :focus-visible { outline: 2px solid #f43f5e; outline-offset: 2px; } /* Selection color */ ::selection { background: rgba(244, 63, 94, 0.3); color: white; } /* Smooth transitions */ .smooth-transition { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }