:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f8fafc;color:#1e293b;line-height:1.6}.app{min-height:100vh;display:flex;flex-direction:column;max-width:1200px;margin:0 auto}.main-content{flex:1;padding:2rem;margin-left:250px}.navbar{position:fixed;top:0;left:0;width:250px;height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem 0;box-shadow:2px 0 10px #0000001a;z-index:1000}.navbar-brand{padding:0 2rem 2rem;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:2rem}.navbar-brand h1{font-size:1.5rem;font-weight:700;color:#fff}.navbar-nav{list-style:none;padding:0}.nav-item{margin-bottom:.5rem}.nav-link{display:flex;align-items:center;gap:.75rem;padding:.75rem 2rem;color:#fffc;text-decoration:none;transition:all .2s ease;border-left:3px solid transparent}.nav-link:hover{background-color:#ffffff1a;color:#fff;border-left-color:#ffffff80}.nav-link.active{background-color:#ffffff26;color:#fff;border-left-color:#fff}.nav-link span{font-weight:500}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e2e8f0}.page-header h1{font-size:2rem;font-weight:700;color:#1e293b}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem;font-size:.9rem}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-secondary{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-secondary:hover{background:#e2e8f0}.btn-icon{background:none;border:none;color:#64748b;cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s ease}.btn-icon:hover{background:#f1f5f9;color:#475569}.btn-danger{color:#ef4444}.btn-danger:hover{background:#fef2f2;color:#dc2626}.card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.dashboard{max-width:1200px}.dashboard-header{margin-bottom:2rem}.dashboard-header h1{font-size:2.5rem;font-weight:800;color:#1e293b;margin-bottom:.5rem}.dashboard-header p{color:#64748b;font-size:1.1rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:3rem}.stat-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;display:flex;align-items:center;gap:1rem;transition:transform .2s ease}.stat-card:hover{transform:translateY(-2px)}.stat-icon{width:60px;height:60px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.bg-blue-500{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.bg-green-500{background:linear-gradient(135deg,#10b981,#059669)}.bg-purple-500{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.bg-orange-500{background:linear-gradient(135deg,#f59e0b,#d97706)}.stat-content h3{font-size:2rem;font-weight:800;color:#1e293b;margin-bottom:.25rem}.stat-content p{color:#64748b;font-weight:500}.dashboard-sections{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.section h2{font-size:1.25rem;font-weight:700;color:#1e293b;margin-bottom:1rem}.game-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.game-teams{display:flex;align-items:center;gap:.5rem;font-weight:600}.vs{color:#64748b;font-weight:400}.game-score{font-weight:700;color:#1e293b}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.action-btn{background:#f8fafc;border:1px solid #e2e8f0;padding:1rem;border-radius:8px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem;font-weight:500;color:#475569}.action-btn:hover{background:#f1f5f9;border-color:#cbd5e1}.empty-state{text-align:center;padding:3rem 1rem;color:#64748b}.empty-state svg{margin-bottom:1rem;opacity:.5}.empty-state h3{font-size:1.25rem;font-weight:600;margin-bottom:.5rem;color:#475569}.empty-state p{margin-bottom:1.5rem}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;padding:2rem}.modal{background:#fff;border-radius:12px;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0}.modal-header h2{font-size:1.25rem;font-weight:700;color:#1e293b}.close-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#64748b;padding:.25rem;border-radius:4px;transition:all .2s ease}.close-btn:hover{background:#f1f5f9;color:#475569}.form{padding:1.5rem}.form-group{margin-bottom:1.5rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#374151}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;transition:border-color .2s ease}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem}.leagues-grid,.teams-grid,.players-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem}.games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:1.5rem}.league-card,.team-card,.player-card,.game-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;transition:transform .2s ease}.league-card:hover,.team-card:hover,.player-card:hover,.game-card:hover{transform:translateY(-2px)}.league-header,.team-header,.player-header,.game-header{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1rem}.league-icon,.team-icon,.player-avatar{width:48px;height:48px;border-radius:8px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.league-info,.team-info,.player-info{flex:1}.league-info h3,.team-info h3,.player-info h3{font-size:1.1rem;font-weight:700;color:#1e293b;margin-bottom:.25rem}.team-league,.player-team{color:#64748b;font-size:.9rem;margin-bottom:.25rem}.player-position{color:#8b5cf6;font-weight:500;font-size:.9rem}.league-actions,.team-actions,.player-actions,.game-actions{display:flex;gap:.5rem}.league-details,.team-details,.player-details,.game-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;margin-top:1rem}.detail-item{display:flex;flex-direction:column;gap:.25rem}.detail-item .label{font-size:.8rem;color:#64748b;font-weight:500}.detail-item .value{font-weight:600;color:#1e293b}.game-teams{display:flex;align-items:center;gap:1rem;flex:1}.team{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem;border-radius:6px;transition:all .2s ease}.team.winner{background:#f0fdf4;border:1px solid #bbf7d0}.team-score{font-size:1.5rem;font-weight:800;color:#1e293b}.vs{color:#64748b;font-weight:500}.game-details{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.game-date{color:#64748b;font-size:.9rem}.game-notes{margin-top:.5rem;color:#475569;font-style:italic}.statistics-page{max-width:1200px}.stats-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:3rem}.overview-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;display:flex;align-items:center;gap:1rem}.overview-icon{width:48px;height:48px;border-radius:8px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff}.overview-content h3{font-size:1.5rem;font-weight:800;color:#1e293b;margin-bottom:.25rem}.overview-content p{color:#64748b;font-weight:500}.stats-sections{display:grid;grid-template-columns:1fr;gap:2rem}.top-teams{display:flex;flex-direction:column;gap:1rem}.team-rank-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:#fff;border-radius:8px;border:1px solid #e2e8f0}.rank-number{font-size:1.5rem;font-weight:800;color:#667eea;min-width:40px}.team-info{flex:1}.team-info h3{font-size:1.1rem;font-weight:700;color:#1e293b;margin-bottom:.5rem}.team-stats{display:flex;gap:1rem;font-size:.9rem;color:#64748b}.team-record{font-weight:600;color:#1e293b}.league-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.league-stat-card{background:#fff;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.league-header h3{font-size:1.1rem;font-weight:700;color:#1e293b;margin-bottom:1rem}.league-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.stat-item{text-align:center}.stat-item .label{display:block;font-size:.8rem;color:#64748b;margin-bottom:.25rem}.stat-item .value{font-size:1.25rem;font-weight:700;color:#1e293b}.recent-games{display:flex;flex-direction:column;gap:1rem}.recent-game-card{background:#fff;border-radius:8px;padding:1rem;border:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}.team-performance{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem}.performance-card{background:#fff;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.performance-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.performance-header h3{font-size:1.1rem;font-weight:700;color:#1e293b}.performance-summary{font-size:.9rem;color:#64748b}.performance-details{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.detail-row{display:flex;justify-content:space-between;font-size:.9rem}.detail-row span:first-child{color:#64748b}.detail-row span:last-child{font-weight:600;color:#1e293b}.wins{color:#10b981}.losses{color:#ef4444}.ties{color:#f59e0b}.games-content{display:grid;grid-template-columns:2fr 1fr;gap:2rem}.games-list h2,.team-stats h2{font-size:1.25rem;font-weight:700;color:#1e293b;margin-bottom:1rem}.stats-grid{display:grid;grid-template-columns:1fr;gap:1rem}.team-stat-card{background:#fff;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.team-stat-header h3{font-size:1.1rem;font-weight:700;color:#1e293b;margin-bottom:1rem}.team-stat-details{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.stat-item{display:flex;justify-content:space-between;font-size:.9rem}.stat-item .label{color:#64748b}.stat-item .value{font-weight:600;color:#1e293b}.schedule-page{max-width:1200px}.header-actions{display:flex;gap:1rem}.schedule-controls{display:flex;gap:2rem;margin-bottom:2rem;padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.control-group{display:flex;flex-direction:column;gap:.5rem}.control-group label{font-weight:600;color:#374151;font-size:.9rem}.control-group select{padding:.5rem;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem}.schedule-content{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.week-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.week-header h2{font-size:1.5rem;font-weight:700;color:#1e293b}.week-info{display:flex;gap:1rem;font-size:.9rem;color:#64748b}.matches-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:1rem}.match-card{background:#f8fafc;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.match-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.match-teams{display:flex;align-items:center;gap:1rem;flex:1}.match-teams .team{display:flex;flex-direction:column;align-items:center;gap:.25rem}.team-name{font-weight:600;color:#1e293b}.match-code{font-size:.8rem;color:#64748b;background:#e2e8f0;padding:.25rem .5rem;border-radius:4px}.scoring-page{max-width:1200px}.scoring-header{display:flex;align-items:center;gap:1rem;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e2e8f0}.scoring-header h1{font-size:2rem;font-weight:700;color:#1e293b;margin:0}.match-info{margin-left:auto;text-align:right}.match-info h2{font-size:1.25rem;font-weight:700;color:#1e293b;margin-bottom:.25rem}.match-info p{color:#64748b;font-size:.9rem}.match-code-form{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;max-width:500px;margin-bottom:2rem}.scoring-info{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;max-width:500px}.info-card h3{font-size:1.1rem;font-weight:700;color:#1e293b;margin-bottom:1rem}.info-card ul{list-style:none;padding:0}.info-card li{padding:.5rem 0;border-bottom:1px solid #f1f5f9;color:#475569}.info-card li:last-child{border-bottom:none}.lineup-selection{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.players-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-bottom:2rem}.player-card{background:#f8fafc;border-radius:8px;padding:1rem;border:2px solid transparent;cursor:pointer;transition:all .2s ease;position:relative}.player-card:hover{background:#f1f5f9;border-color:#cbd5e1}.player-card.selected{background:#dbeafe;border-color:#3b82f6}.player-card .player-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;margin-bottom:.5rem}.player-card .player-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.player-card .player-info h3{font-size:1rem;font-weight:600;color:#1e293b;margin-bottom:.25rem}.player-nickname{color:#8b5cf6;font-weight:500;font-size:.9rem;margin-bottom:.25rem}.player-position{color:#64748b;font-size:.8rem}.selected-indicator{position:absolute;top:.5rem;right:.5rem;width:24px;height:24px;background:#10b981;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700}.lineup-summary{background:#f8fafc;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.lineup-summary h3{font-size:1rem;font-weight:600;color:#1e293b;margin-bottom:.5rem}.selected-players{display:flex;gap:.5rem;flex-wrap:wrap}.selected-player{background:#dbeafe;color:#1e40af;padding:.25rem .5rem;border-radius:4px;font-size:.9rem;font-weight:500}.lineup-actions{text-align:center}.scoring-content{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.round-navigation{display:flex;gap:.5rem;margin-bottom:2rem;flex-wrap:wrap}.round-btn{padding:.5rem 1rem;border:1px solid #e2e8f0;background:#f8fafc;border-radius:6px;cursor:pointer;transition:all .2s ease;font-size:.9rem;font-weight:500}.round-btn:hover{background:#f1f5f9}.round-btn.active{background:#3b82f6;color:#fff;border-color:#3b82f6}.scoring-grid{margin-bottom:2rem}.scoring-header-row{display:grid;grid-template-columns:120px repeat(3,1fr) 120px;gap:1rem;padding:1rem;background:#f8fafc;border-radius:8px;margin-bottom:1rem;font-weight:600;color:#374151}.scoring-row{display:grid;grid-template-columns:120px repeat(3,1fr) 120px;gap:1rem;padding:1rem;border-bottom:1px solid #e2e8f0;align-items:center}.round-label{font-weight:600;color:#1e293b}.score-input input{width:100%;padding:.5rem;border:1px solid #d1d5db;border-radius:4px;text-align:center;font-size:1rem;font-weight:600}.score-input input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.round-total{font-weight:700;color:#1e293b;text-align:center;font-size:1.1rem}.match-total{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f0fdf4;border-radius:8px;margin-top:1rem;border:1px solid #bbf7d0}.total-label{font-weight:600;color:#166534}.total-value{font-size:1.5rem;font-weight:800;color:#166534}.scoring-actions{text-align:center}.big-score-input{font-size:2.2rem;height:3.5rem;padding:.5rem 1.5rem;border-radius:8px;text-align:center;width:100%;margin:.5rem 0 1rem;color:#1e293b;background:#fff;border:2px solid #d1d5db;box-shadow:0 1px 4px #667eea0f}.big-score-input::placeholder{color:#cbd5e1;opacity:1;font-size:2rem;text-align:center}.hamburger{display:none;background:none;border:none;padding:.5rem;margin-left:1rem;cursor:pointer;z-index:2001}.hamburger span{display:block;width:28px;height:3px;margin:5px 0;background:#fff;border-radius:2px;transition:all .3s}@media (max-width: 768px){.navbar{width:100vw;height:auto;min-height:0;position:fixed;left:0;top:0;z-index:1000;padding:0;box-shadow:0 2px 10px #00000014;transition:left .3s}.navbar-brand{padding:.5rem 1rem;margin-bottom:0;border-bottom:none;display:flex;align-items:center;justify-content:space-between;min-height:60px}.navbar-nav{display:none;flex-direction:column;background:linear-gradient(135deg,#667eea,#764ba2);position:absolute;top:60px;left:0;width:100vw;box-shadow:0 2px 10px #00000014;z-index:1002}.navbar-nav.open{display:flex}.nav-link{padding:1.25rem 2rem;font-size:1.1rem;border-left:none;border-bottom:1px solid rgba(255,255,255,.08)}.hamburger{display:block}.btn-secondary{width:auto;margin:0;padding:.5rem 1rem;font-size:.9rem}.main-content{margin-left:0;margin-right:0;padding:1rem;padding-top:80px;width:100%;text-align:right}.form-group input,.form-group select,.form-group textarea{background:#fff;border:1.5px solid #d1d5db;border-radius:5px;padding:.9rem}.dashboard-sections,.games-content,.form-row,.quick-actions,.stats-grid,.leagues-grid,.teams-grid,.players-grid,.games-grid,.league-stats-grid,.performance-details{grid-template-columns:1fr}.stats-overview{grid-template-columns:repeat(2,1fr)}.team-stats,.header-actions{flex-direction:column;gap:.5rem}.schedule-controls{flex-direction:column;gap:1rem}.scoring-page{padding-top:65px;padding-left:.5rem;padding-right:.5rem;max-width:600px;margin:0 auto;text-align:right}.scoring-header{flex-direction:column;gap:.5rem;text-align:center;align-items:stretch;padding-bottom:.5rem}.scoring-content{padding:1rem .5rem}.score-entry{display:flex;flex-direction:column;align-items:stretch;gap:.75rem;width:100%;max-width:100%}.score-entry label{margin-bottom:.5rem;width:100%}.big-score-input{width:100%;flex:none;margin:0;box-sizing:border-box}.score-entry .btn-primary{width:100%;margin:0;height:3.5rem;font-size:1.1rem;min-width:0;white-space:nowrap;box-sizing:border-box}.login-page{padding-top:100px;margin-left:0}.login-card{padding:1.25rem .75rem 1rem;max-width:98vw;min-width:0;margin:.5rem 0 0}.login-card form .form-group{margin-bottom:1.25rem}.login-card form .form-group input,.login-card form .form-group label{font-size:1rem}.scoring-header-row,.scoring-row{grid-template-columns:1fr;gap:.5rem}.round-navigation{justify-content:center}.players-grid{grid-template-columns:1fr}.match-info{margin-left:0;text-align:center}.score-notification{position:absolute;inset:0;background:#10b981f2;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;font-weight:700;font-size:1.5rem;z-index:1000;border-radius:12px;animation:fadeInOut 1.5s ease-in-out}.score-notification svg{width:48px;height:48px}@keyframes fadeInOut{0%{opacity:0;transform:scale(.8)}20%{opacity:1;transform:scale(1)}80%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}}
