* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: #f4f6f9; color: #1a1a1a; line-height: 1.5; }
.navbar { background: #1f4e79; color: white; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.nav-brand { font-weight: 600; font-size: 1.1rem; }
.nav-links a { color: white; margin-left: 20px; text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { text-decoration: underline; }
.container { max-width: 920px; margin: 24px auto; padding: 0 20px; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #eef2f7; }
.login-box { background: white; padding: 40px 36px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); width: 100%; max-width: 400px; }
.login-box h1 { margin-top: 0; margin-bottom: 24px; }
label { display: block; margin: 16px 0 6px; font-weight: 500; font-size: 0.95rem; }
input[type="text"], input[type="password"], input[type="date"], textarea, select {
    width: 100%; padding: 11px 12px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 16px; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,0.12); }
button, .btn {
    background: #1f4e79; color: white; border: none; padding: 11px 20px; border-radius: 6px;
    cursor: pointer; text-decoration: none; display: inline-block; font-size: 15px; font-weight: 500;
}
button:hover, .btn:hover { background: #163a5c; }
.btn.secondary { background: #6c757d; }
.btn.secondary:hover { background: #5a6268; }
.error { background: #fee2e2; color: #b91c1c; padding: 10px 12px; border-radius: 6px; margin-bottom: 16px; }
.card { background: white; border-radius: 10px; padding: 20px; margin: 16px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.task-header h1 { margin: 0 0 12px; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.status-new { background: #e5e7eb; color: #374151; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-on_hold { background: #fef3c7; color: #92400e; }
.status-completed { background: #d1fae5; color: #065f46; }
.priority-high { background: #fee2e2; color: #991b1b; }
.priority-medium { background: #fef3c7; color: #92400e; }
.priority-low { background: #d1fae5; color: #065f46; }
.toast {
    position: fixed; bottom: 20px; right: 20px; background: #1f4e79; color: white;
    padding: 12px 18px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000; max-width: 300px;
}
.badge.unread { background: #dc2626; color: white; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-left: 4px; }
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card { background: white; padding: 16px 18px; border-radius: 10px; border-left: 5px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.task-card a { text-decoration: none; color: inherit; display: block; }
.task-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.meta { display: flex; gap: 8px; font-size: 13px; color: #555; flex-wrap: wrap; align-items: center; }
.nav-points { color: #fff; background: #159A5A; padding: 4px 10px; border-radius: 16px; font-size: 13px; font-weight: 600; margin-left: 8px; }
.badge { padding: 3px 9px; border-radius: 16px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.project-desc { color: #444; margin: 8px 0 0; white-space: pre-wrap; }
.description { white-space: pre-wrap; }
.attachment-list { list-style: none; padding: 0; margin: 0 0 16px; }
.attachment-list li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 12px; }
.attachment-list a { color: #1f4e79; font-weight: 500; }
.file-size, .file-date { color: #888; font-size: 13px; }
.upload-form, .comment-form, .status-form { margin-top: 12px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form select, .inline-form input { flex: 1; min-width: 160px; }
.comment { background: #f8fafc; padding: 12px 14px; border-radius: 8px; margin: 10px 0; }
.comment .date { color: #888; font-size: 12px; margin-left: 8px; }
.muted { color: #888; }
.back { color: #1f4e79; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
.stat { background: white; padding: 12px 16px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.filters input, .filters select { flex: 1; min-width: 140px; }
.lang-switch { text-align: center; margin-top: 20px; font-size: 14px; }
@media (max-width: 640px) {
    .navbar { flex-direction: column; gap: 10px; padding: 12px; }
    .nav-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
    .container { padding: 0 12px; }
    .inline-form { flex-direction: column; }
    .inline-form select, .inline-form input { width: 100%; }
}
