:root { --primary-color: #4F46E5; --secondary-color: #10B981; --background-color: #F3F4F6; --surface-color: #FFFFFF; --text-color: #111827; } body { font-family: 'Inter', sans-serif; background-color: var(--background-color); color: var(--text-color); } .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 80px; background-color: var(--surface-color); padding: 1rem 0; transition: width 0.3s ease; z-index: 1000; overflow-x: hidden; display: flex; flex-direction: column; border-right: 1px solid #e5e7eb; } .sidebar.expanded { width: 250px; } .sidebar .nav-link { display: flex; align-items: center; padding: 0.75rem 1.5rem; color: #6b7280; text-decoration: none; white-space: nowrap; } .sidebar .nav-link .icon { width: 1.5rem; height: 1.5rem; margin-right: 1rem; flex-shrink: 0; } .sidebar .nav-link .link-text { opacity: 0; transition: opacity 0.2s ease-in-out; } .sidebar.expanded .nav-link .link-text { opacity: 1; } .sidebar .nav-link:hover { color: var(--primary-color); background-color: #f9fafb; } .sidebar .logo-container { display: flex; align-items: center; justify-content: center; padding: 1rem; margin-bottom: 1rem; } .sidebar .logo { width: 40px; height: 40px; background-color: var(--primary-color); border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.5rem; flex-shrink: 0; } .sidebar-toggle { position: absolute; bottom: 1rem; left: 1.5rem; background: none; border: none; color: #6b7280; padding: 0.5rem; } .sidebar.expanded .sidebar-toggle { left: auto; right: 1rem; } .main-content { margin-left: 80px; padding: 2rem; transition: margin-left 0.3s ease; } .main-content.expanded { margin-left: 250px; } @media (max-width: 768px) { .sidebar { width: 0; padding: 0; } .sidebar.expanded { width: 250px; } .main-content { margin-left: 0; } .main-content.expanded { margin-left: 0; /* Or a semi-transparent overlay */ } }