:root { --primary: #4F46E5; --primary-hover: #4338CA; --primary-rgb: 79, 70, 229; --secondary: #10B981; --bg: #F3F4F6; --surface: #FFFFFF; --input-bg: #FFFFFF; --text: #1F2937; --text-light: #6B7280; --border: #E5E7EB; } body.dark-mode { --primary: #818CF8; --primary-hover: #6366F1; --primary-rgb: 129, 140, 248; --bg: #0F172A; --surface: #1E293B; --input-bg: #334155; --text: #F8FAFC; --text-light: #94A3B8; --border: #334155; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); transition: background-color 0.3s, color 0.3s; } a { text-decoration: none; color: var(--primary); } a:hover { text-decoration: underline; } .app-container { display: flex; min-height: 100vh; } /* ── Sidebar ─────────────────────────────────────────────────────────────── */ .sidebar { width: 240px; background: var(--surface); border-right: 1px solid var(--border); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; transition: width 0.25s cubic-bezier(.4,0,.2,1); flex-shrink: 0; position: relative; } .sidebar-brand { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; white-space: nowrap; overflow: hidden; } /* Toggle button pinned to right edge */ .sidebar-toggle-btn { position: fixed; top: 1.5rem; left: 226px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-light); font-size: 0.65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 20; transition: left 0.25s cubic-bezier(.4,0,.2,1), background 0.15s, color 0.15s, border-color 0.15s; box-shadow: 0 2px 6px rgba(0,0,0,0.12); } .sidebar-toggle-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); } /* Nav link: icon always visible, label collapses */ .nav-link { padding: 0.6rem 0.75rem; border-radius: 0.5rem; text-decoration: none !important; color: var(--text); font-weight: 500; transition: background 0.2s; display: flex; align-items: center; gap: 0.65rem; font-size: 0.875rem; white-space: nowrap; overflow: hidden; position: relative; } .nav-link:hover, .nav-link.active { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); } .nav-icon { width: 18px; text-align: center; flex-shrink: 0; font-size: 0.95rem; } .sidebar-label { overflow: hidden; transition: opacity 0.2s; opacity: 1; flex: 1; } .nav-link .badge { background: #EF4444; color: white; padding: 2px 6px; border-radius: 12px; font-size: 0.72rem; margin-left: auto; } /* ── Collapsed State ────────────────────────────────────────────────────── */ body.sidebar-collapsed .sidebar { width: 64px; } body.sidebar-collapsed .sidebar-label { opacity: 0; width: 0; pointer-events: none; } body.sidebar-collapsed .nav-link { justify-content: center; padding: 0.65rem; gap: 0; } body.sidebar-collapsed .nav-link .badge { position: absolute; top: 2px; right: 2px; padding: 1px 4px; font-size: 0.6rem; } body.sidebar-collapsed .sidebar-toggle-btn { left: 50px; } body.sidebar-collapsed .sidebar-toggle-btn .fa-chevron-left { display: block; } /* Tooltip on collapsed nav links */ body.sidebar-collapsed .nav-link { position: relative; } body.sidebar-collapsed .nav-link::after { content: attr(title); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--text); color: var(--surface); padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 100; } body.sidebar-collapsed .nav-link:hover::after { opacity: 1; } .main-content { flex: 1; padding: 1.5rem 2rem; overflow-y: auto; max-height: 100vh; } .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .card { background: var(--surface); padding: 1.5rem; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 1.5rem; } .btn { display: inline-flex; align-items: center; gap: 0.5rem; justify-content:center; padding: 0.5rem 1rem; background: var(--primary); color: white !important; border-radius: 0.5rem; border: none; cursor: pointer; text-decoration: none !important; font-weight: 500; transition: opacity 0.2s; font-size: 0.875rem; } .btn:hover { opacity: 0.9; text-decoration: none !important; } .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; } .btn-secondary { background: var(--text-light); } .btn-danger { background: #EF4444; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; } .form-control { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; font-family: inherit; background: var(--input-bg); color: var(--text); font-size: 0.9rem; } .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12); } table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.875rem; } th, td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); } th { color: var(--text-light); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(0,0,0,0.02); } body.dark-mode th { background: rgba(255,255,255,0.02); } tr:hover td { background: rgba(var(--primary-rgb),0.03); } .kanban-board { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; } .kanban-col { background: rgba(0,0,0,0.03); border-radius: 1rem; width: 320px; min-width: 320px; display: flex; flex-direction: column; } body.dark-mode .kanban-col { background: rgba(255,255,255,0.03); } .kanban-col-header { padding: 1rem; font-weight: 600; border-bottom: 2px solid var(--border); } .kanban-tasks { padding: 1rem; flex: 1; min-height: 200px; display: flex; flex-direction: column; gap: 1rem; } .kanban-task { background: var(--surface); padding: 1rem; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid var(--border); cursor: grab; } .kanban-task:active { cursor: grabbing; } .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s; backdrop-filter: blur(3px); } .modal-overlay.active { opacity: 1; pointer-events: auto; } .modal-content { background: var(--surface); padding: 2rem; border-radius: 1rem; width: 100%; max-width: 500px; transform: translateY(-20px); transition: transform 0.2s; box-shadow: 0 25px 50px rgba(0,0,0,0.3); } .modal-overlay.active .modal-content { transform: translateY(0); } #toast { position: fixed; bottom: 20px; right: 20px; background: var(--text); color: var(--surface); padding: 1rem 1.25rem; border-radius: 0.5rem; z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.3s; font-size: 0.875rem; } #toast.show { transform: translateY(0); opacity: 1; } .dropzone { border: 2px dashed var(--border); padding: 2rem; text-align: center; border-radius: 1rem; cursor: pointer; transition: background 0.2s; color: var(--text-light); } .dropzone.dragover { background: rgba(var(--primary-rgb), 0.1); border-color: var(--primary); } .project-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); transition: background 0.15s; } .project-item:hover { background: rgba(var(--primary-rgb),0.04); } body.dark-mode .project-item:hover { background: rgba(255,255,255,0.03); } .login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%); } .login-card { background: var(--surface); padding: 2.5rem; border-radius: 1rem; width: 100%; max-width: 400px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); } .login-card h1 { text-align: center; margin-bottom: 1.5rem; color: var(--text); } .alert { padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; background: #FEF2F2; color: #991B1B; font-size: 0.875rem; } /* ── User Avatar Dropdown ─────────────────────────────────────────────────── */ .user-dropdown-wrap { position: relative; } .user-avatar-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; flex-shrink: 0; } .user-avatar-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.2); } /* Notification count badge overlaid on avatar */ .avatar-notif-badge { position: absolute; top: -3px; right: -3px; background: #EF4444; color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 10px; border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; padding: 0 3px; line-height: 1; animation: badge-pop 0.3s cubic-bezier(.17,.67,.83,.67); } @keyframes badge-pop { 0%{transform:scale(0)}70%{transform:scale(1.2)}100%{transform:scale(1)} } .user-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: 0 10px 25px rgba(0,0,0,0.15); min-width: 200px; z-index: 500; overflow: hidden; animation: dropdown-in 0.15s ease; } .user-dropdown-menu.open { display: block; } @keyframes dropdown-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } } .user-dropdown-header { padding: 0.9rem 1rem; background: rgba(var(--primary-rgb),0.06); } .user-dropdown-name { font-weight: 700; font-size: 0.9rem; color: var(--text); } .user-dropdown-role { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; } .user-dropdown-divider { height: 1px; background: var(--border); margin: 0; } .user-dropdown-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 1rem; width: 100%; border: none; background: none; color: var(--text); font-size: 0.875rem; cursor: pointer; text-decoration: none !important; font-family: inherit; transition: background 0.15s; } .user-dropdown-item:hover { background: rgba(var(--primary-rgb),0.07); color: var(--primary); } .user-dropdown-item i { width: 16px; text-align: center; color: var(--text-light); } .user-dropdown-item:hover i { color: var(--primary); } .user-dropdown-logout { color: #EF4444 !important; } .user-dropdown-logout:hover { background: rgba(239,68,68,0.07) !important; } .user-dropdown-logout i { color: #EF4444 !important; } /* ── Activity log scrollbar fix ────────────────────────────────────────── */ .log-list { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; flex: 1; max-height: 360px; padding-right: 8px; /* prevent scrollbar from eating time */ scrollbar-gutter: stable; /* modern browsers reserve scrollbar space */ scrollbar-width: thin; scrollbar-color: var(--border) transparent; } .log-list::-webkit-scrollbar { width: 4px; } .log-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } .log-list::-webkit-scrollbar-track { background: transparent; } /* ── Notes / Google Keep Style ───────────────────────────────────────────── */ .notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; } .note-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; cursor: pointer; transition: box-shadow 0.2s, transform 0.15s; position: relative; display: flex; flex-direction: column; gap: 0.5rem; min-height: 120px; } .note-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); transform: translateY(-2px); } .note-card-title { font-weight: 600; font-size: 0.95rem; color: var(--text); word-break: break-word; } .note-card-preview { font-size: 0.8rem; color: var(--text-light); overflow: hidden; max-height: 80px; line-height: 1.5; word-break: break-word; } .note-card-img { width: 100%; height: 120px; object-fit: cover; border-radius: 0.5rem; margin-bottom: 0.25rem; } .note-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--border); gap: 0.5rem; } .note-card-actions { display: none; gap: 0.25rem; } .note-card:hover .note-card-actions { display: flex; } .note-color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .note-card-shared-badge { background: #10B981; color: #fff; font-size: 0.65rem; padding: 2px 6px; border-radius: 10px; font-weight: 600; letter-spacing: 0.03em; } /* Note editor toolbar */ .note-editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.5rem; padding: 0.35rem; background: var(--bg); border-radius: 0.5rem; border: 1px solid var(--border); } .note-toolbar-btn { background: none; border: none; cursor: pointer; padding: 4px 7px; border-radius: 4px; color: var(--text-light); font-size: 0.85rem; transition: background 0.15s, color 0.15s; } .note-toolbar-btn:hover { background: rgba(var(--primary-rgb),0.1); color: var(--primary); } .note-content-area { width: 100%; min-height: 160px; border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem; outline: none; font-size: 0.9rem; line-height: 1.6; background: var(--input-bg); color: var(--text); resize: vertical; } .note-content-area:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1); } .note-modal-compact { padding: 1rem 1.1rem; } .note-modal-compact .form-group { margin-bottom: 0.75rem; } .note-modal-compact .note-editor-toolbar { margin-bottom: 0.45rem; padding: 0.28rem; } .note-modal-compact .note-toolbar-btn { padding: 3px 6px; font-size: 0.82rem; } .note-modal-compact .form-control { padding: 0.55rem 0.68rem; font-size: 0.88rem; } .note-modal-compact .note-content-area { min-height: 200px; } @media (max-width: 760px) { .note-modal-top-fields { grid-template-columns: 1fr !important; } } /* Note color palette */ .note-color-palette { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; } .color-swatch { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s, border-color 0.15s; } .color-swatch:hover, .color-swatch.selected { transform: scale(1.2); border-color: var(--text); } /* ── Passwords Vault / Bitwarden Style ───────────────────────────────────── */ .vault-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 500px; } .vault-sidebar { background: rgba(var(--primary-rgb),0.05); border-right: 1px solid var(--border); border-radius: 1rem 0 0 1rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; } .vault-folder-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.65rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text); border: none; background: none; width: 100%; text-align: left; transition: background 0.15s; font-family: inherit; } .vault-folder-item:hover, .vault-folder-item.active { background: rgba(var(--primary-rgb),0.12); color: var(--primary); font-weight: 600; } .vault-folder-item i { width: 16px; color: var(--text-light); } .vault-folder-item.active i { color: var(--primary); } .vault-main { padding: 1.5rem; } .vault-search { display: flex; align-items:center; gap: 0.5rem; margin-bottom: 1rem; } .vault-entry { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; cursor: pointer; } .vault-entry:hover { background: rgba(var(--primary-rgb),0.04); border-color: var(--border); } .vault-entry-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(var(--primary-rgb),0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; overflow: hidden; } .vault-entry-icon img { width: 100%; height: 100%; object-fit: contain; } .vault-entry-info { flex: 1; min-width: 0; } .vault-entry-title { font-weight: 600; font-size: 0.9rem; color: var(--text); } .vault-entry-user { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vault-entry-actions { display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.15s; } .vault-entry:hover .vault-entry-actions { opacity: 1; } /* ── Projects / Windows Explorer Detail View ─────────────────────────────── */ .explorer-toolbar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; flex-wrap: wrap; } .explorer-path { display: flex; align-items: center; gap: 0.25rem; flex: 1; min-width: 0; font-size: 0.875rem; } .explorer-path-part { color: var(--text-light); } .explorer-path-part.current { color: var(--text); font-weight: 600; } .explorer-path-sep { color: var(--text-light); font-size: 0.75rem; margin: 0 2px; } .explorer-table { width: 100%; border-collapse: collapse; } .explorer-table thead tr { background: rgba(var(--primary-rgb),0.05); } .explorer-table th { padding: 0.55rem 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); font-weight: 600; cursor: pointer; user-select: none; border-bottom: 2px solid var(--border); white-space: nowrap; } .explorer-table th:hover { color: var(--primary); } .explorer-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; } .explorer-row { transition: background 0.12s; } .explorer-row:hover { background: rgba(var(--primary-rgb),0.04); } .explorer-row.selected { background: rgba(var(--primary-rgb),0.1); } .explorer-icon { font-size: 1rem; width: 22px; display: inline-block; text-align: center; } .explorer-name { display: flex; align-items: center; gap: 0.5rem; } .explorer-name a { font-weight: 500; color: var(--text); } .explorer-name a:hover { color: var(--primary); text-decoration: none; } .explorer-actions { display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.15s; } .explorer-row:hover .explorer-actions { opacity: 1; } .explorer-status-bar { display: flex; gap: 1rem; align-items: center; padding: 0.4rem 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.5rem; font-size: 0.78rem; color: var(--text-light); margin-top: 0.5rem; } /* ── Admin Panel ─────────────────────────────────────────────────────────── */ .admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; } .admin-tab { padding: 0.65rem 1.25rem; border: none; background: none; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--text-light); font-family: inherit; transition: color 0.15s; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; } .admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); } .admin-tab-pane { display: none; } .admin-tab-pane.active { display: block; } .admin-user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; } .admin-user-card { background: var(--bg); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; } .admin-user-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; } .admin-user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; overflow: hidden; flex-shrink: 0; } .admin-badge-admin { background: rgba(79,70,229,0.1); color: var(--primary); font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; font-weight: 700; letter-spacing: 0.04em; } .admin-badge-user { background: rgba(107,114,128,0.1); color: var(--text-light); font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; font-weight: 600; } /* ── Misc utils ──────────────────────────────────────────────────────────── */ .flex-between { display: flex; justify-content: space-between; align-items: center; } .badge { background: #EF4444; color: white; padding: 2px 6px; border-radius: 12px; font-size: 0.75rem; } /* ── Dashboard stat card (also used in admin) ────────────────────────────── */ .db-stat-card { background: var(--surface); border-radius: 1rem; padding: 1.25rem 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; transition: transform 0.15s, box-shadow 0.15s; text-decoration: none !important; color: var(--text) !important; } .db-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px -3px rgba(0,0,0,0.1); } /* ── Activity Log (shared) ───────────────────────────────────────────────── */ .log-item { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.8rem; padding: 0.35rem 0; } .log-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; } .log-body { flex: 1; min-width: 0; } .log-body strong { color: var(--text); } .log-body .log-detail { color: var(--text-light); } .log-time { font-size: 0.7rem; color: var(--text-light); white-space: nowrap; flex-shrink: 0; } /* ── Markdown body styles ────────────────────────────────────────────────── */ .markdown-body h1,.markdown-body h2,.markdown-body h3 { margin: 0.75rem 0 0.4rem; font-weight: 700; color: var(--text); } .markdown-body h1 { font-size: 1.3rem; } .markdown-body h2 { font-size: 1.1rem; } .markdown-body h3 { font-size: 1rem; } .markdown-body p { margin: 0.4rem 0; line-height: 1.6; } .markdown-body ul,.markdown-body ol { padding-left: 1.5rem; margin: 0.4rem 0; } .markdown-body li { margin: 0.2rem 0; } .markdown-body code { background: rgba(var(--primary-rgb),0.1); padding: 2px 5px; border-radius: 4px; font-size: 0.85em; font-family: monospace; } .markdown-body pre { background: rgba(0,0,0,0.07); padding: 0.75rem; border-radius: 6px; overflow-x: auto; } .markdown-body pre code { background: none; padding: 0; } body.dark-mode .markdown-body pre { background: rgba(255,255,255,0.05); } .markdown-body blockquote { border-left: 3px solid var(--primary); padding-left: 0.75rem; color: var(--text-light); margin: 0.5rem 0; } .markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; } .markdown-body a { color: var(--primary); }