*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg: #0a0c14; --bg2: #111420; --bg3: #191d2e; --bg4: #1f2438; --border: rgba(255,255,255,0.07); --border2: rgba(255,255,255,0.12); --text: #e8eaf2; --text2: #7b80a0; --accent: #00e07a; --accent2: #00b862; --accent-bg: rgba(0,224,122,0.08); --accent-border: rgba(0,224,122,0.2); --red: #ff4d6a; --red-bg: rgba(255,77,106,0.1); --amber: #ffb020; --amber-bg: rgba(255,176,32,0.1); --blue: #4d9fff; --blue-bg: rgba(77,159,255,0.1); --sidebar-w: 230px; --radius: 10px; --radius-lg: 14px; --radius-xl: 18px; --font: -apple-system, "SF Pro Display", "Segoe UI", sans-serif; }
html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 99px; }
#login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-box { width: 380px; padding: 44px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-xl); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.login-logo { text-align: center; margin-bottom: 36px; }
.logo-mark { width: 56px; height: 56px; background: var(--accent); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #000; margin: 0 auto 14px; }
.login-title { font-size: 22px; font-weight: 700; }
.login-sub { font-size: 13px; color: var(--text2); margin-top: 5px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.field input { width: 100%; padding: 11px 14px; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text); font-size: 14px; outline: none; transition: border 0.2s; font-family: var(--font); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,224,122,0.1); }
.btn-login { width: 100%; padding: 12px; background: var(--accent); color: #000; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 8px; font-family: var(--font); }
.btn-login:hover { opacity: 0.88; }
.error-msg { color: var(--red); font-size: 13px; padding: 10px 14px; background: var(--red-bg); border-radius: var(--radius); margin-bottom: 16px; }
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: var(--sidebar-w); min-width: var(--sidebar-w); background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100vh; flex-shrink: 0; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 22px 18px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.nav-section { padding: 4px 10px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text2); text-decoration: none; border-radius: var(--radius); font-size: 13.5px; font-weight: 500; transition: all 0.15s; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); }
.nav-item .icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; }
.sidebar-footer { margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--border); }
.sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text2); text-decoration: none; border-radius: var(--radius); font-size: 13px; transition: all 0.15s; }
.sidebar-footer a:hover { background: var(--bg3); color: var(--red); }
.main { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--border); background: var(--bg2); position: sticky; top: 0; z-index: 50; }
.topbar-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.content { padding: 24px 28px; flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; font-family: var(--font); text-decoration: none; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--bg4); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(255,77,106,0.2); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-icon { padding: 7px; width: 32px; height: 32px; justify-content: center; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metric-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: border-color 0.2s, transform 0.15s; }
.metric-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.metric-label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.metric-value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.metric-sub { font-size: 12px; color: var(--text2); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.07em; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg3); }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.badge-green { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(255,77,106,0.2); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(255,176,32,0.2); }
.badge-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(77,159,255,0.2); }
.badge-gray { background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
input, select, textarea { width: 100%; padding: 10px 13px; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text); font-size: 13.5px; outline: none; transition: border 0.2s, box-shadow 0.2s; font-family: var(--font); -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,224,122,0.08); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-xl); min-width: 500px; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.6); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { width: 30px; height: 30px; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; flex-shrink: 0; }
.modal-close:hover { background: var(--red-bg); color: var(--red); border-color: rgba(255,77,106,0.2); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg3); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.empty-state { text-align: center; padding: 64px 40px; }
.empty-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; color: var(--text2); margin-bottom: 24px; }
#toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: var(--radius); font-size: 13.5px; font-weight: 500; z-index: 99999; opacity: 0; transform: translateY(6px); transition: all 0.2s; pointer-events: none; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.success { background: var(--accent); color: #000; }
#toast.error { background: var(--red); color: #fff; }
.tabs { display: flex; gap: 2px; background: var(--bg3); border-radius: var(--radius); padding: 4px; margin-bottom: 20px; border: 1px solid var(--border); }
.tab-btn { flex: 1; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text2); background: transparent; border: none; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.tab-btn.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kanban-col { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.kanban-header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); display: flex; align-items: center; justify-content: space-between; background: var(--bg3); }
.kanban-body { padding: 10px; min-height: 200px; }
.kanban-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.kanban-card:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent); }
.alert-danger { background: var(--red-bg); border: 1px solid rgba(255,77,106,0.2); color: var(--red); }
.alert-info { background: var(--blue-bg); border: 1px solid rgba(77,159,255,0.2); color: var(--blue); }
