/* ============================================================ Main dashboard (index) page styles ============================================================ */ html, body { background: black; height: 100vh; overflow: hidden; } /* Tournament navigation */ .tournament-nav { display: flex; align-items: center; gap: 8px; } .round-nav-btn { background: #f8f9fa; border: 2px solid #e9ecef; cursor: pointer; padding: 12px 20px; border-radius: 8px; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); color: #333; font-weight: bold; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; line-height: 1; height: 44px; margin: 0; flex-shrink: 0; } .round-nav-btn:hover { background: #e9ecef; border-color: #28a745; box-shadow: 0 4px 8px rgba(0,0,0,0.15); transform: translateY(-1px); color: #28a745; } .round-nav-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; background: #f8f9fa !important; border-color: #e9ecef !important; color: #333 !important; } .current-round-info { text-align: center; min-width: 100px; margin: 0; padding: 0; } .round-title { font-size: 1.2rem; font-weight: bold; color: #333; margin: 0; padding: 0; line-height: 1.2; } .round-progress { font-size: 0.9rem; color: #666; padding: 2px 8px; background: rgba(0,123,255,0.1); border-radius: 6px; border: 1px solid rgba(0,123,255,0.2); margin: 2px 0 0 0; } .datetime { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0; margin: 0; line-height: 1.2; } .datetime .time { font-size: 1.6rem; font-weight: bold; color: #333; padding: 0; margin: 0; line-height: 1.2; } .datetime .date { font-size: 0.9rem; color: #666; padding: 0; margin: 0; line-height: 1.2; } .grid { height: calc(100vh - 50px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; box-sizing: border-box; align-content: stretch; } /* Leaderboard display mode */ .main-wrapper { display: flex; height: calc(100vh - 50px); } .main-wrapper .grid { flex: 1; height: 100%; grid-template-columns: 1fr; grid-template-rows: 1fr; min-width: 0; } .lb-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; background: #141414; border-left: 2px solid #222; overflow: hidden; } .lb-header { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #222; flex-shrink: 0; } .lb-title { font-size: 1.1rem; font-weight: 800; color: #fff; } .lb-count { background: #28a745; color: white; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 12px; } .lb-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #444; gap: 10px; font-size: 0.9rem; } .lb-empty .icon { font-size: 2.5rem; } .lb-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; } .lb-list::-webkit-scrollbar { width: 4px; } .lb-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; } .lb-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; background: #1e1e1e; border: 2px solid #2a2a2a; } .lb-row.r1 { border-color: #ffc107; background: #1c1900; } .lb-row.r2 { border-color: #888; background: #181818; } .lb-row.r3 { border-color: #a0522d; background: #1a1210; } .lb-badge { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; flex-shrink: 0; background: #2a2a2a; color: #aaa; } .lb-row.r1 .lb-badge { background: #ffc107; color: #7a5800; font-size: 1rem; } .lb-row.r2 .lb-badge { background: #888; color: #fff; font-size: 1rem; } .lb-row.r3 .lb-badge { background: #a0522d; color: #fff; font-size: 1rem; } .lb-name { flex: 1; min-width: 0; font-size: 0.95rem; font-weight: 700; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-tens { font-size: 0.7rem; font-weight: 700; color: #ffc107; flex-shrink: 0; } .lb-pts { font-size: 1.2rem; font-weight: 900; color: #28a745; flex-shrink: 0; min-width: 36px; text-align: right; } /* Camera cards */ .camera-card { overflow: hidden; display: flex; flex-direction: column; position: relative; align-items: center; justify-content: center; } .card-title { font-size: 1.1rem; font-weight: 600; color: white; text-align: left; pointer-events: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stream-wrapper { position: relative; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); overflow: hidden; pointer-events: none; display: flex; flex-direction: column; max-width: 100%; max-height: 100%; width: fit-content; height: fit-content; gap: 0; margin: 0; padding: 0; } .image-container { position: relative; width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 0 0 12px 12px; background: #1a1a1a; flex: 1; } .stream-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; z-index: 5; } .stream-placeholder svg { width: 100%; height: 100%; display: block; } .stream { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: fill; object-position: center; display: block; transition: opacity 0.3s ease; pointer-events: none; z-index: 10; opacity: 1; } .card-header { background: linear-gradient(90deg, #28a745 0%, #28a745 60px, #1a1a1a 60px); border-bottom: 2px solid #333; padding: 12px 15px 12px 0; display: flex; align-items: center; gap: 0; transition: all 0.2s ease; border-radius: 12px 12px 0 0; flex-shrink: 0; margin: 0; line-height: 1; } .target-number { background: transparent; color: white; width: 60px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; flex-shrink: 0; margin-right: 15px; transition: color 0.2s ease; } .camera-card.no-player .card-header { background: linear-gradient(90deg, #999 0%, #999 60px, #1a1a1a 60px); } /* Settings panel */ #overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; } #overlay.active { opacity: 1; visibility: visible; } .settings-panel { position: fixed; top: 0; right: -500px; width: 500px; height: 100vh; background: white; z-index: 1000; box-shadow: -4px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease; overflow-y: auto; } .settings-panel.active { right: 0; } .settings-header { background: #f8f9fa; padding: 20px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; } .settings-header h3 { margin: 0; font-size: 1.3rem; color: #333; } .close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; padding: 4px 8px; border-radius: 4px; } .close-btn:hover { background: #e9ecef; color: #333; } .settings-content { padding: 25px 30px; } .settings-group { margin-bottom: 25px; padding: 20px; background: #f8f9fa; border-radius: 12px; border: 1px solid #e9ecef; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } .settings-group h4 { margin: -5px 0 20px 0; font-size: 1.2rem; color: #2c3e50; border-bottom: 3px solid #28a745; padding-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .settings-group h5 { margin: 20px 0 15px 0; font-size: 1.05rem; color: #495057; border-bottom: 1px solid #dee2e6; padding-bottom: 5px; font-weight: 500; } .settings-group:has(h4[data-i18n="league.system"]) { background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%); border-left: 4px solid #17a2b8; } .settings-group:has(h4[data-i18n="league.system"]) h4 { color: #17a2b8; border-bottom-color: #17a2b8; } .settings-group:has(h4[data-i18n="league.camera"]) { background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%); border-left: 4px solid #28a745; } .settings-group:has(h4[data-i18n="league.camera"]) h4 { color: #28a745; border-bottom-color: #28a745; } .settings-group:has(h4[data-i18n="league.tournaments"]) { background: linear-gradient(135deg, #fff8e1 0%, #fffef7 100%); border-left: 4px solid #ffc107; } .settings-group:has(h4[data-i18n="league.tournaments"]) h4 { color: #e67e22; border-bottom-color: #ffc107; } .nav-link { display: block; background: white; border: 2px solid #dee2e6; color: #495057; padding: 14px 18px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.1); margin-bottom: 12px; } .nav-link:hover { background: #f8f9fa; border-color: #28a745; color: #28a745; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,123,255,0.15); text-decoration: none !important; } .settings-group:has(h4[data-i18n="league.tournaments"]) .nav-link { border: 2px solid #dee2e6; background: white; color: #333; font-weight: 500; } .settings-group:has(h4[data-i18n="league.tournaments"]) .nav-link:hover { background: #fffbf0; border-color: #ffc107; color: #ff9800; box-shadow: 0 5px 12px rgba(255,152,0,0.2); } .camera-input { width: 100%; padding: 14px 18px; border: 2px solid #dee2e6; border-radius: 10px; background: white; color: #495057; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.1); box-sizing: border-box; } .camera-input:focus { border-color: #28a745; box-shadow: 0 5px 12px rgba(0,123,255,0.15); transform: translateY(-1px); outline: none; } .camera-input:hover:not(:focus) { border-color: #28a745; box-shadow: 0 5px 12px rgba(0,123,255,0.15); transform: translateY(-1px); } .cam-setting-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 0.9rem; color: #495057; cursor: pointer; border-bottom: 1px solid #e9ecef; margin-bottom: 14px; } .cam-setting-toggle input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #28a745; } .cam-slider-row { margin-bottom: 14px; } .cam-slider-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: #495057; margin-bottom: 6px; } .cam-slider-value { font-weight: 600; color: #28a745; } .cam-slider { width: 100%; accent-color: #28a745; } .cam-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; } .cam-row { border: 1.5px solid #dee2e6; border-radius: 10px; overflow: hidden; background: white; transition: opacity 0.2s ease; } .cam-row--disabled { opacity: 0.55; } .cam-row-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; } .cam-row-label { font-size: 0.85rem; font-weight: 600; color: #495057; } .cam-row .camera-input { border: none; border-radius: 0; box-shadow: none; padding: 10px 12px; font-size: 0.9rem; } .cam-row .camera-input:focus { border: none; box-shadow: inset 0 0 0 2px #28a745; transform: none; } .cam-row .camera-input:hover:not(:focus) { border: none; box-shadow: inset 0 0 0 2px #28a74580; transform: none; } .cam-toggle { display: flex; align-items: center; gap: 7px; cursor: pointer; } .cam-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; } .cam-toggle-track { width: 36px; height: 20px; background: #dc3545; border-radius: 10px; position: relative; transition: background 0.2s ease; flex-shrink: 0; } .cam-toggle input:checked ~ .cam-toggle-track { background: #28a745; } .cam-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: transform 0.2s ease; } .cam-toggle input:checked ~ .cam-toggle-track .cam-toggle-thumb { transform: translateX(16px); } .cam-toggle-text { font-size: 0.78rem; font-weight: 600; color: #28a745; min-width: 22px; } .cam-toggle-text--off { color: #dc3545; } .tournament-status-info { background: #f0f8ff; border: 2px solid #28a745; border-radius: 8px; padding: 15px; margin: 15px 0; } .tournament-status-info p { margin: 5px 0; color: #333; } .tournament-btn { background: #28a745 !important; border-color: #1e7e34 !important; color: white !important; text-align: center; font-size: 0.95rem !important; padding: 14px 18px !important; font-weight: 500 !important; } .tournament-btn:hover { background: #1e7e34 !important; border-color: #004085 !important; color: white !important; text-decoration: none !important; } @media (max-width: 768px) { .navbar { padding: 10px 15px; flex-direction: column; gap: 15px; } .navbar-controls { flex-wrap: wrap; justify-content: center; } .grid { height: calc(100vh - 100px); grid-template-columns: 1fr; gap: 15px; padding: 20px; } .card-header { background: linear-gradient(90deg, #28a745 0%, #28a745 50px, #1a1a1a 50px); padding: 10px 12px 10px 0; } .target-number { width: 50px; font-size: 1.1rem; margin-right: 12px; } .card-title { font-size: 1.2rem; } .settings-panel { width: 100%; right: -100%; } .tournament-nav { gap: 10px; } .round-nav-btn { width: 45px; height: 45px; padding: 10px; font-size: 1.1rem; } .current-round-info { min-width: 100px; } .round-title { font-size: 1.2rem; } .round-progress { font-size: 0.75rem; } } @media (max-width: 480px) { .grid { padding: 15px; gap: 12px; } .card-header { background: linear-gradient(90deg, #28a745 0%, #28a745 45px, #1a1a1a 45px); padding: 8px 10px 8px 0; } .target-number { width: 45px; font-size: 1rem; margin-right: 10px; } .card-title { font-size: 1rem; } }