:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;color:#213547;background-color:#f5f5f5}*{margin:0;padding:0;box-sizing:border-box}body{min-height:100vh}.app-layout{display:flex;min-height:100vh}.sidebar{width:250px;background:#1a1a2e;color:#fff;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto}.sidebar-brand{padding:1rem 1rem .75rem;border-bottom:1px solid #2a2a4e;text-align:center}.sidebar-logo{width:100%;max-width:160px;height:auto;filter:brightness(0) invert(1)}.sidebar-nav{display:flex;flex-direction:column;padding:.5rem 0}.sidebar-nav a{display:block;padding:.5rem 1rem;color:#aaa;text-decoration:none;font-size:.85rem}.sidebar-nav a:hover{background:#16213e;color:#fff}.sidebar-nav a.active{background:#16213e;color:#fff;border-left:3px solid #4361ee;padding-left:calc(1rem - 3px)}.sidebar-divider{border-top:1px solid #2a2a4e;margin:.25rem 0}.sidebar-section{flex:1;overflow-y:auto}.sidebar-section-toggle{display:block;width:100%;text-align:left;background:none;border:none;color:#888;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:.6rem 1rem;cursor:pointer}.sidebar-section-toggle:hover{color:#ccc}.sidebar-project-list{padding-bottom:.5rem}.sidebar-project-item{display:block;width:100%;text-align:left;background:none;border:none;color:#aaa;font-size:.82rem;padding:.35rem 1rem .35rem 1.25rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-project-item:hover{background:#16213e;color:#fff}.sidebar-project-item.active{color:#fff;background:#16213e;border-left:3px solid #4361ee;padding-left:calc(1.25rem - 3px)}.sidebar-board-list{padding:.15rem 0 .25rem}.sidebar-board-item{display:block;width:100%;text-align:left;background:none;border:none;color:#888;font-size:.78rem;padding:.25rem 1rem .25rem 2rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-board-item:hover{background:#16213e;color:#ccc}.sidebar-board-item.active{color:#4361ee;background:#0f1529}.sidebar-empty{color:#555;font-size:.8rem;padding:.5rem 1.25rem}.sidebar-user{padding:.75rem 1rem;font-size:.8rem;color:#999;border-top:1px solid #2a2a4e;margin-top:auto}.btn-logout{background:transparent;color:#999;border:1px solid #555;font-size:.75rem;padding:.25rem .5rem;border-radius:4px;margin-top:.4rem}.btn-logout:hover{color:#fff;border-color:#999}.main-content{flex:1;padding:1.5rem 2rem;overflow-y:auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.page-header h1{font-size:1.5rem}table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a}th,td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid #eee}th{background:#f8f9fa;font-weight:600;font-size:.85rem;text-transform:uppercase;color:#666}button{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-primary{background:#4361ee;color:#fff}.btn-primary:hover{background:#3a56d4}.btn-danger{background:#e63946;color:#fff}.btn-danger:hover{background:#c1121f}.btn-sm{padding:.3rem .6rem;font-size:.8rem}.status-badge{display:inline-block;padding:.2rem .6rem;border-radius:12px;font-size:.75rem;font-weight:600}.status-New{background:#e3f2fd;color:#1565c0}.status-Active,.status-InProgress{background:#e8f5e9;color:#2e7d32}.status-OnHold,.status-InReview{background:#fff3e0;color:#e65100}.status-Completed{background:#e0f2f1;color:#00695c}.status-Cancelled{background:#fce4ec;color:#c62828}.priority-Low{color:#666}.priority-Normal{color:#1565c0}.priority-High{color:#e65100}.priority-Critical{color:#c62828;font-weight:700}.login-page{display:flex;justify-content:center;align-items:center;min-height:100vh;background:#1a1a2e}.login-form{background:#fff;padding:2rem;border-radius:8px;width:360px;box-shadow:0 4px 12px #0000004d}.login-form h2{margin-bottom:1.5rem;text-align:center}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.3rem;font-size:.85rem;font-weight:600}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:4px;font-size:.9rem}.error-message{color:#c62828;font-size:.85rem;margin-bottom:1rem}.inline-form{background:#fff;padding:1.25rem;border-radius:8px;margin-bottom:1.5rem;box-shadow:0 1px 3px #0000001a}.form-row{display:flex;gap:1rem}.form-row .form-group{flex:1}.kanban-board{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:1rem;align-items:flex-start;min-height:calc(100vh - 140px)}.kanban-column{min-width:260px;flex:1;background:#f0f0f0;border-radius:8px;display:flex;flex-direction:column;transition:background .15s;border:2px solid transparent}.kanban-column-over{background:#e3f2fd;border-color:#4361ee}.kanban-column-header{display:flex;align-items:center;gap:.5rem;padding:.75rem .75rem .5rem}.kanban-column-header h3{font-size:.85rem;color:#555;flex:1;margin:0}.kanban-column-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.kanban-column-count{background:#ddd;color:#555;font-size:.75rem;font-weight:600;padding:.1rem .5rem;border-radius:10px}.kanban-column-body{padding:0 .75rem .75rem;flex:1;min-height:60px}.kanban-card{background:#fff;padding:.75rem;border-radius:6px;margin-bottom:.5rem;box-shadow:0 1px 2px #0000001a;cursor:grab;transition:box-shadow .15s,opacity .15s}.kanban-card:hover{box-shadow:0 3px 8px #00000026}.kanban-card:active{cursor:grabbing}.kanban-card-selected{outline:2px solid #4361ee;outline-offset:-2px;background:#eef1ff}.kanban-card-dragging{opacity:.4}.kanban-card h4{font-size:.85rem;margin-bottom:.3rem}.kanban-card-project{font-size:.75rem;color:#4361ee;margin-bottom:.25rem}.kanban-card .meta{font-size:.75rem;color:#888}.kanban-empty{color:#bbb;font-size:.8rem;text-align:center;padding:2rem .5rem;border:2px dashed #ddd;border-radius:6px}.kanban-drop-line{height:3px;background:#4361ee;border-radius:2px;margin:2px 0;box-shadow:0 0 4px #4361ee80}.toast-container{position:fixed;top:60px;right:1rem;z-index:9999;display:flex;flex-direction:column;gap:.5rem;max-width:480px}.toast-error{background:#c62828;color:#fff;padding:.75rem 1rem;border-radius:6px;box-shadow:0 4px 12px #0000004d;display:flex;align-items:flex-start;gap:.75rem;animation:toast-in .2s ease-out}.toast-message{flex:1;font-size:.85rem;word-break:break-word}.toast-close{background:none;border:none;color:#fff;font-size:1.2rem;cursor:pointer;padding:0;line-height:1;opacity:.7}.toast-close:hover{opacity:1}@keyframes toast-in{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;justify-content:center;align-items:flex-start;padding-top:5vh;z-index:5000;overflow-y:auto}.modal-content{background:#fff;border-radius:8px;width:640px;max-width:95vw;box-shadow:0 8px 32px #0000004d;animation:modal-in .15s ease-out}@keyframes modal-in{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;border-bottom:1px solid #eee}.modal-header h2{font-size:1.1rem;margin:0}.modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#999;padding:0;line-height:1}.modal-close:hover{color:#333}.modal-body{padding:1.25rem}.modal-footer{display:flex;gap:.5rem;padding:1rem 1.25rem;border-top:1px solid #eee}.btn-secondary{background:#e0e0e0;color:#333}.btn-secondary:hover{background:#d0d0d0}.task-link{color:#4361ee;text-decoration:none;cursor:pointer}.task-link:hover{text-decoration:underline}.context-menu{background:#fff;border-radius:6px;box-shadow:0 4px 16px #0003;min-width:160px;padding:.3rem 0;animation:modal-in .1s ease-out}.context-menu-header{padding:.4rem 1rem;font-size:.75rem;font-weight:600;color:#4361ee;border-bottom:1px solid #eee;margin-bottom:.2rem}.context-menu-item{display:block;width:100%;text-align:left;background:none;border:none;padding:.5rem 1rem;font-size:.85rem;cursor:pointer;color:#333}.context-menu-item:hover{background:#f0f0f0}.context-menu-danger{color:#c62828}.context-menu-danger:hover{background:#fce4ec}.context-menu-divider{border-top:1px solid #eee;margin:.2rem 0}.context-menu-submenu{position:relative;cursor:default}.context-submenu{position:absolute;left:100%;top:-.3rem;background:#fff;border-radius:6px;box-shadow:0 4px 16px #0003;min-width:180px;padding:.3rem 0;z-index:6001}
