:root { font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; color-scheme: light dark; color: #1e293b; background-color: #f8fafc; --primary: #2563eb; --primary-hover: #1d4ed8; --success: #10b981; --success-hover: #059669; --warning: #f59e0b; --warning-hover: #d97706; --danger: #ef4444; --danger-hover: #dc2626; --card-bg: #ffffff; --border-color: #e2e8f0; --text-primary: #0f172a; --text-secondary: #64748b; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { font-weight: 500; color: var(--primary); text-decoration: inherit; } a:hover { color: var(--primary-hover); } body { margin: 0; min-width: 320px; min-height: 100vh; } h1 { font-size: 3.2em; line-height: 1.1; } #app { width: 100%; min-height: 100vh; } .logo { height: 6em; padding: 1.5em; will-change: filter; transition: filter 300ms; } .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } .logo.vanilla:hover { filter: drop-shadow(0 0 2em #f7df1eaa); } .card { padding: 2em; } .read-the-docs { color: #888; } button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: var(--primary); color: white; cursor: pointer; transition: background-color 0.25s, border-color 0.25s; } button:hover { background-color: var(--primary-hover); } button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } @media (prefers-color-scheme: light) { :root { color: var(--text-primary); background-color: #f8fafc; } a:hover { color: var(--primary-hover); } } .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; } .login-card { background: var(--card-bg); padding: 2.5rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; border: 1px solid var(--border-color); } .login-title { color: var(--text-primary); margin: 0 0 2rem 0; font-size: 1.8rem; text-align: center; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 500; } .form-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; color: var(--text-primary); font-size: 1rem; box-sizing: border-box; } .form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .login-button { width: 100%; padding: 0.875rem; background-color: var(--primary); color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color 0.25s; } .login-button:hover { background-color: var(--primary-hover); border-color: transparent; } .login-error { color: var(--danger); text-align: center; margin-top: 1rem; font-size: 0.9rem; } .dashboard { max-width: 1280px; margin: 0 auto; padding: 2rem; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .dashboard-header h1 { font-size: 2rem; margin: 0; } .dashboard-content { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .logout-button { background-color: var(--danger); color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; } .logout-button:hover { background-color: var(--danger-hover); border-color: transparent; } .status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; } .status-pending { background-color: #fef3c7; color: #d97706; } .status-paid { background-color: #d1fae5; color: #059669; } .status-overdue { background-color: #fee2e2; color: #dc2626; } .status-draft { background-color: #f1f5f9; color: #64748b; } .amount-display { font-family: 'Courier New', monospace; font-weight: 600; color: var(--text-primary); } .card-stat { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); } .card-stat-label { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; } .card-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); } .card-stat.positive .card-stat-value { color: var(--success); } .card-stat.negative .card-stat-value { color: var(--danger); } /* App Layout with Sidebar */ .app-layout { display: flex; min-height: 100vh; width: 100%; } /* Sidebar Styles */ .sidebar { width: 250px; background-color: var(--card-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; transition: width 0.3s ease, transform 0.3s ease; position: relative; z-index: 100; } .sidebar-header { padding: 1.5rem 1rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .sidebar-header h2 { margin: 0; font-size: 1.5rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-toggle { background: transparent; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-secondary); font-size: 1.25rem; border-radius: 4px; transition: background-color 0.2s; } .sidebar-toggle:hover { background-color: var(--border-color); border-color: transparent; } .sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; } .sidebar-menu { list-style: none; margin: 0; padding: 0; } .sidebar-menu li { margin: 0; } .sidebar-link { display: flex; align-items: center; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; transition: background-color 0.2s, color 0.2s; cursor: pointer; } .sidebar-link:hover { background-color: var(--border-color); color: var(--text-primary); } .sidebar-link.active { background-color: rgba(37, 99, 235, 0.1); color: var(--primary); border-left: 3px solid var(--primary); } .sidebar-icon { font-size: 1.25rem; margin-right: 0.75rem; min-width: 1.5rem; text-align: center; } .sidebar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Collapsed Sidebar State */ .sidebar.collapsed { width: 70px; } .sidebar.collapsed .sidebar-header h2, .sidebar.collapsed .sidebar-text { opacity: 0; width: 0; overflow: hidden; } .sidebar.collapsed .sidebar-icon { margin-right: 0; } /* Main Content Area */ .main-content { flex: 1; overflow-y: auto; background-color: #f8fafc; } .main-content > div { max-width: 1280px; margin: 0 auto; padding: 2rem; } /* Responsive Design */ @media (max-width: 768px) { .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 1000; transform: translateX(0); } .sidebar.collapsed { transform: translateX(-100%); width: 250px; } .main-content { margin-left: 0; } } /* Test Page Styles */ .test-page { padding: 2rem; } .test-page h1 { color: var(--text-primary); margin-bottom: 1rem; font-size: 2rem; } .test-content { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); margin-top: 1rem; } .test-button { background-color: var(--success); color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; margin-top: 1rem; } .test-button:hover { background-color: var(--success-hover); border-color: transparent; } /* Adjust dashboard and login for new layout */ .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; width: 100%; }