@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
} /* THIS BRACKET WAS MISSING */

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; }

body { background: var(--bg); color: var(--text-main); -webkit-font-smoothing: antialiased; }

/* App Layout & Navbar (Modern & Mobile Responsive) */
.top-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 40; }
.nav-left { display: flex; align-items: center; gap: 32px; flex: 1 1 auto; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.brand svg { color: var(--primary); }
.nav-links { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; padding: 8px 12px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover { background: #f1f5f9; color: var(--text-main); }
.nav-link.active { background: #eef2ff; color: var(--primary); font-weight: 600; }
.main-content { padding: 32px 24px; max-width: 1400px; margin: 0 auto; width: 100%; }

/* Sprint Header & Progress */
.sprint-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
.sprint-info h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.progress-container { width: 100%; max-width: 320px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.progress-track { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s ease; }

/* Buttons */
.btn { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 0.85rem; transition: background 0.2s; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: #f8fafc; }
.btn-icon { padding: 6px; background: transparent; border: 1px solid transparent; color: var(--text-muted); border-radius: 6px; cursor: pointer; }
.btn-icon:hover { background: #f1f5f9; color: var(--text-main); }

/* Kanban Board - Mobile Horizontal Scrolling */
.kanban-board { display: flex; gap: 20px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.column { background: #f8fafc; padding: 16px; border-radius: var(--radius); min-height: 500px; border: 1px solid var(--border); flex: 1; min-width: 280px; scroll-snap-align: start; }
.column h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 16px; font-weight: 700; display: flex; justify-content: space-between; }

/* Cards */
.task-card { background: var(--surface); padding: 16px; border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 12px; cursor: grab; border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s; }
.task-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }
.task-card:active { cursor: grabbing; }
.task-card.is-dragging { opacity: 0.9; transform: scale(1.03) rotate(2deg); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15); cursor: grabbing; z-index: 50; border-color: var(--primary); }
.task-title { font-weight: 500; margin-bottom: 12px; font-size: 0.95rem; line-height: 1.4; color: var(--text-main); }
.task-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.badge-weight { background: #f1f5f9; color: var(--text-muted); padding: 2px 8px; border-radius: 12px; font-weight: 600; font-size: 0.75rem; border: 1px solid var(--border); }

/* Avatars & Users */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: white; font-size: 0.75rem; font-weight: 600; box-shadow: 0 0 0 2px var(--surface); }

/* Workload Section */
.workload-section { margin-bottom: 32px; }
.workload-section h2 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.workload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member-card { background: var(--surface); border: 1px solid var(--border); padding: 16px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.over-capacity { border-color: #fca5a5; background: #fef2f2; }

/* Modals */
.modal { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 50; padding: 16px; }
.modal-content { background: var(--surface); padding: 32px; border-radius: 12px; width: 100%; max-width: 440px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); max-height: 90vh; overflow-y: auto; }
.modal-content h3 { margin-bottom: 24px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 6px; font-weight: 500; color: var(--text-main); }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; outline: none; transition: border-color 0.2s; background: #fff; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* Mobile Utilities */
@media (max-width: 768px) {
    .nav-left { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
    .nav-right { width: 100%; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
    .main-content { padding: 20px 16px; }
    .sprint-header { flex-direction: column; align-items: flex-start; }
    .progress-container { max-width: 100%; }
    .desktop-only { display: none !important; }
} /* THIS BRACKET WAS MISSING */

/* Login Page Styles */
.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f8fafc; padding: 20px; }
.login-container { background: var(--surface); padding: 40px; border-radius: 12px; box-shadow: var(--shadow); width: 100%; max-width: 400px; text-align: center; border: 1px solid var(--border); }
.login-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; letter-spacing: -0.5px; }
.login-logo svg { color: var(--primary); }
.login-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }