/* public/css/theme.css — Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cyan: #00d4ff;
  --violet: #a855f7;
  --bg: #050508;
  --glass: rgba(15, 15, 25, 0.5);
  --glass-heavy: rgba(15, 20, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --text: #e2e8f0;
  --muted: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
  --shadow-glow-violet: 0 0 20px rgba(168, 85, 247, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; overflow-x: hidden; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.glass { background: var(--glass-heavy); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.glass:hover { border-color: var(--glass-border-hover); }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 56px; background: rgba(10, 10, 20, 0.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--glass-border); }
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--cyan); }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text); text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 0.75rem; }
.nav-username { font-size: 0.85rem; color: var(--muted); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; }
.nav-avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), #0099cc); color: #000; }
.btn-primary:hover { box-shadow: var(--shadow-glow-cyan); }
.btn-secondary { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); }
.btn-secondary:hover { border-color: var(--glass-border-hover); }
.btn-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.3); }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-icon { padding: 0.4rem; width: 32px; height: 32px; justify-content: center; }

input, textarea, select { background: rgba(10, 10, 20, 0.6); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 0.9rem; padding: 0.5rem 0.75rem; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1); }
textarea { resize: vertical; min-height: 80px; }

.card-label { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.priority-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.priority-critical { background: var(--danger); }
.priority-high { background: var(--warning); }
.priority-medium { background: var(--cyan); }
.priority-low { background: var(--muted); }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { background: rgba(15, 20, 35, 0.95); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 2rem; max-width: 800px; width: 90%; max-height: 80vh; overflow-y: auto; }

.table-glass { width: 100%; border-collapse: collapse; }
.table-glass th, .table-glass td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
.table-glass th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; }
.table-glass tr:hover { background: rgba(255, 255, 255, 0.02); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

main { padding-top: 72px; padding-left: 1rem; padding-right: 1rem; min-height: calc(100vh - 72px); }
.main-padded { padding: 72px 2rem 2rem; max-width: 1200px; margin: 0 auto; }

.text-muted { color: var(--muted); }
.text-cyan { color: var(--cyan); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Login page */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 80vh; }
.login-card { padding: 3rem; text-align: center; max-width: 400px; width: 100%; }
.login-title { font-size: 1.8rem; font-weight: 700; color: var(--cyan); margin-bottom: 0.5rem; }
.login-subtitle { color: var(--muted); margin-bottom: 2rem; }
.btn-discord { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.75rem 2rem; background: #5865F2; color: white; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; text-decoration: none; transition: all 0.2s; }
.btn-discord:hover { background: #4752C4; box-shadow: 0 0 20px rgba(88, 101, 242, 0.3); text-decoration: none; }

/* Dashboard */
.dashboard { padding: 72px 2rem 2rem; max-width: 1200px; margin: 0 auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.board-card { display: block; padding: 1.5rem; text-decoration: none; color: var(--text); transition: all 0.2s; }
.board-card:hover { text-decoration: none; border-color: var(--cyan); box-shadow: var(--shadow-glow-cyan); }
.board-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.board-card-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.board-card-repo { font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.board-card-count { font-size: 0.75rem; color: var(--muted); }

/* Board sidebar */
.board-layout { display: flex; padding-top: 56px; height: 100vh; }
.board-sidebar { width: 220px; flex-shrink: 0; padding: 1rem; margin: 0; border-radius: 0; border-top: none; border-left: none; border-bottom: none; overflow-y: auto; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-title { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; font-weight: 600; }
.sidebar-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--radius-sm); color: var(--text); font-size: 0.85rem; text-decoration: none; }
.sidebar-item:hover { background: rgba(255,255,255,0.04); text-decoration: none; }
.sidebar-item.active { background: rgba(0,212,255,0.08); color: var(--cyan); }
.sidebar-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.board-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 1rem; }
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.board-name { font-size: 1.3rem; font-weight: 700; }
.board-repo { font-size: 0.8rem; color: var(--muted); }
.btn-chip { padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.btn-chip.active { background: rgba(0,212,255,0.12); color: var(--cyan); }
.btn-chip:hover { text-decoration: none; color: var(--text); }

/* Card styles */
.kanban-card { cursor: grab; }
.card-title { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; }
.card-labels { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 0.4rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.card-meta { display: flex; gap: 0.5rem; align-items: center; }
.card-due { font-size: 0.7rem; color: var(--muted); }
.card-due.overdue { color: var(--danger); }
.card-avatar { width: 22px; height: 22px; border-radius: 50%; }
.card-progress { margin-top: 0.4rem; }
.progress-bar { height: 4px; background: var(--glass); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--cyan); border-radius: 2px; transition: width 0.3s; }
.progress-text { font-size: 0.65rem; color: var(--muted); }

@media (max-width: 900px) {
  .navbar { padding: 0 1rem; }
  main { padding-top: 64px; padding-left: 0.5rem; padding-right: 0.5rem; }
  .board-sidebar { display: none; }
  .board-layout { padding-top: 56px; }
}
