*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f0f2f5;color:#1a1a2e;-webkit-text-size-adjust:100%;line-height:1.5}.input-field{width:100%;padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px;background:#fff;transition:border-color .15s}.input-field:focus{outline:none;border-color:#2e7d32;box-shadow:0 0 0 3px #2e7d321a}select.input-field{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.btn,.btn-outline,.btn-danger{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border:none;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer;transition:background .15s}.btn:disabled,.btn-outline:disabled,.btn-danger:disabled{opacity:.5;cursor:default}.btn,.btn-outline,.btn-danger{background:#2e7d32;color:#fff}.btn:hover:not(:disabled),.btn-outline:hover:not(:disabled),.btn-danger:hover:not(:disabled){background:#1b5e20}.btn-danger{background:#d32f2f}.btn-danger:hover:not(:disabled){background:#b71c1c}.btn-outline{background:transparent;border:1px solid #cbd5e1;color:#64748b}.btn-outline:hover:not(:disabled){background:#f1f5f9}.btn-sm{padding:6px 14px;font-size:13px}.empty-state{text-align:center;color:#94a3b8;padding:40px 20px;font-size:15px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.page-header h2{margin:0;font-size:20px}.card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;padding:20px;margin-bottom:16px}.app-shell{display:flex;min-height:100vh}.sidebar-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:99}.sidebar-overlay.visible{display:block}.sidebar{position:fixed;top:0;left:-260px;width:260px;height:100vh;background:#1b5e20;color:#fff;display:flex;flex-direction:column;z-index:100;transition:left .25s ease}.sidebar.open{left:0}.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:20px 16px;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-brand{display:flex;align-items:center;gap:10px}.brand-icon{font-size:28px}.brand-text{font-size:20px;font-weight:700}.sidebar-close{background:none;border:none;color:#ffffffb3;font-size:22px;cursor:pointer}.sidebar-close:hover{color:#fff}.sidebar-nav{flex:1;padding:12px 8px;display:flex;flex-direction:column;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;color:#ffffffd9;text-decoration:none;font-size:15px;font-weight:500;transition:background .15s}.nav-item:hover{background:#ffffff1f}.nav-item.router-link-active{background:#ffffff2e;color:#fff}.nav-icon{font-size:20px}.sidebar-footer{padding:12px 16px 20px;border-top:1px solid rgba(255,255,255,.1)}.user-badge{display:flex;align-items:center;gap:10px;margin-bottom:10px}.user-avatar{width:36px;height:36px;border-radius:50%;background:#fff3;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0}.user-email{font-size:13px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-logout{width:100%;padding:10px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#fff;font-size:14px;cursor:pointer;transition:background .15s}.btn-logout:hover{background:#fff3}.main-area{flex:1;display:flex;flex-direction:column;min-width:0}.top-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:50}.top-bar-title{font-size:17px;font-weight:600;color:#1b5e20}.spacer{flex:1}.hamburger{background:none;border:none;font-size:24px;cursor:pointer;color:#333}main{flex:1;padding:16px}.card-list{display:flex;flex-direction:column;gap:8px}.list-item{display:flex;align-items:center;gap:14px;background:#fff;border-radius:12px;padding:14px 16px;box-shadow:0 1px 3px #0000000f}.list-item.clickable{cursor:pointer;transition:box-shadow .15s}.list-item.clickable:hover{box-shadow:0 2px 8px #0000001a}.list-item.active{box-shadow:0 0 0 2px #2e7d32}.item-avatar{width:42px;height:42px;border-radius:50%;background:#e8f5e9;color:#2e7d32;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;flex-shrink:0}.item-icon{font-size:28px;flex-shrink:0}.item-body{flex:1;min-width:0}.item-name{font-weight:600;font-size:16px}.item-meta{font-size:13px;color:#64748b;margin-top:2px}.match-card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 3px #0000000f}.match-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.match-tourney{font-size:13px;color:#64748b;font-weight:500}.match-status-badge.completed{background:#e8f5e9;color:#2e7d32;font-size:11px;padding:2px 8px;border-radius:4px;text-transform:uppercase;font-weight:600;letter-spacing:.3px}.match-status-badge.scheduled{background:#fff3e0;color:#e65100;font-size:11px;padding:2px 8px;border-radius:4px;text-transform:uppercase;font-weight:600;letter-spacing:.3px}.match-status-badge.in_progress{background:#e3f2fd;color:#1565c0;font-size:11px;padding:2px 8px;border-radius:4px;text-transform:uppercase;font-weight:600;letter-spacing:.3px}.match-players{display:flex;align-items:center;gap:12px;margin-bottom:12px}.match-player{flex:1;display:flex;align-items:center;gap:8px;font-weight:500;font-size:15px}.match-player.winner{color:#2e7d32;font-weight:700}.player-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.match-vs{color:#94a3b8;font-size:13px;font-weight:600;flex-shrink:0}.match-footer{display:flex;align-items:center;gap:12px;border-top:1px solid #f1f5f9;padding-top:10px}.match-round-label{font-size:13px;color:#64748b;font-weight:500}.match-score-display{flex:1;text-align:center;font-size:14px;font-weight:600;color:#334155}.detail-section{display:flex;flex-direction:column;gap:16px;margin-top:16px}.reg-item{padding:6px 0;font-size:14px;border-bottom:1px solid #f1f5f9}.reg-item:last-child{border:none}.match-item{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:14px;border-bottom:1px solid #f1f5f9}.match-item:last-child{border:none}.match-round{font-weight:600;min-width:60px}.match-score{flex:1;text-align:center;color:#475569}.match-status{font-size:12px;padding:2px 8px;border-radius:4px}.match-status.completed{background:#e8f5e9;color:#2e7d32}.match-status.scheduled{background:#fff3e0;color:#e65100}.match-status.in_progress{background:#e3f2fd;color:#1565c0}.match-grid{display:flex;flex-direction:column;gap:12px}@media(min-width:640px){.match-grid{display:grid;grid-template-columns:repeat(3,1fr)}}.form-grid{display:flex;flex-direction:column;gap:10px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:200;padding:16px}.modal-card{background:#fff;border-radius:16px;padding:28px 24px;width:100%;max-width:400px;box-shadow:0 20px 60px #0000004d}.modal-form{display:flex;flex-direction:column;gap:10px}.modal-actions{display:flex;gap:8px;margin-top:4px}.login-page{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#1b5e20,#2e7d32,#388e3c);padding:16px}.login-card{width:100%;max-width:400px;background:#fff;border-radius:16px;padding:40px 32px;box-shadow:0 20px 60px #0000004d}.login-brand{text-align:center;margin-bottom:28px}.login-icon{font-size:48px;display:block;margin-bottom:8px}.login-brand h1{font-size:26px;color:#1b5e20;margin:0}.login-subtitle{color:#64748b;font-size:14px;margin-top:4px}.login-form{display:flex;flex-direction:column;gap:14px}.error-msg{background:#fef2f2;color:#d32f2f;padding:10px 14px;border-radius:8px;font-size:14px;margin:0}.toggle-link{text-align:center;font-size:14px;color:#2e7d32;text-decoration:none}.toggle-link:hover{text-decoration:underline}
