diff --git a/templates/modern_player_analysis.html b/templates/modern_player_analysis.html index acbe1d4..b6aeeb3 100644 --- a/templates/modern_player_analysis.html +++ b/templates/modern_player_analysis.html @@ -41,64 +41,7 @@ color: #333; } - /* Standardized Navigation Bar */ - .navbar { - background: white; - color: black; - padding: 15px 25px; - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 2px solid #ccc; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - } - - .navbar-title { - font-size: 1.8rem; - font-weight: bold; - color: #333; - } - - .navbar-controls { - display: flex; - gap: 12px; - align-items: center; - } - - .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; - text-decoration: none; - font-weight: bold; - font-size: 0.9rem; - } - - .nav-btn:hover { - background: #e9ecef; - border-color: #007bff; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); - transform: translateY(-1px); - color: #007bff; - } - - .nav-btn.active { - background: #007bff; - border-color: #0056b3; - color: white; - } - - .nav-btn.active:hover { - background: #0056b3; - color: white; - } - - /* Standardized Container */ +/* Standardized Container */ .container { max-width: 1400px; margin: 0 auto; diff --git a/templates/modern_player_stats.html b/templates/modern_player_stats.html index 5d5b563..52ae65e 100644 --- a/templates/modern_player_stats.html +++ b/templates/modern_player_stats.html @@ -25,63 +25,6 @@ color: #333; } - /* Enhanced Navigation Bar */ - .navbar { - background: white; - color: black; - padding: 15px 25px; - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 2px solid #ccc; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - } - - .navbar-title { - font-size: 1.8rem; - font-weight: bold; - color: #333; - } - - .navbar-controls { - display: flex; - gap: 12px; - align-items: center; - } - - .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; - text-decoration: none; - font-weight: bold; - font-size: 0.9rem; - } - - .nav-btn:hover { - background: #e9ecef; - border-color: #007bff; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); - transform: translateY(-1px); - color: #007bff; - } - - .nav-btn.active { - background: #007bff; - border-color: #0056b3; - color: white; - } - - .nav-btn.active:hover { - background: #0056b3; - color: white; - } - /* Standardized Container */ .container { max-width: 1400px; @@ -321,6 +264,67 @@ font-weight: 500; } + .accuracy-chart-container { + background: white; + border-radius: 12px; + border: 1px solid #e9ecef; + padding: 20px; + margin-bottom: 20px; + box-shadow: 0 2px 4px rgba(0,0,0,0.05); + } + + .accuracy-chart-container h4 { + margin: 0 0 15px 0; + color: #333; + font-size: 0.95rem; + font-weight: 600; + } + + .accuracy-bar-chart { + display: flex; + align-items: flex-end; + justify-content: space-around; + height: 200px; + gap: 6px; + padding: 10px 0; + border-bottom: 2px solid #e9ecef; + } + + .accuracy-bar { + display: flex; + flex-direction: column; + align-items: center; + gap: 8px; + flex: 1; + max-width: 35px; + } + + .accuracy-bar-value { + width: 100%; + border-radius: 4px 4px 0 0; + transition: all 0.3s ease; + cursor: pointer; + min-height: 5px; + } + + .accuracy-bar-value:hover { + opacity: 0.8; + box-shadow: 0 -2px 8px rgba(0,0,0,0.15); + } + + .accuracy-bar-label { + font-size: 0.8rem; + font-weight: 600; + color: #333; + text-align: center; + } + + .accuracy-bar-count { + font-size: 0.7rem; + color: #666; + font-weight: 500; + } + .chart-container { position: relative; flex: 1; @@ -447,6 +451,44 @@ border-color: rgba(33, 150, 243, 0.2); } + /* Clickable History Item Links */ + .history-item-link { + display: block; + cursor: pointer; + transition: all 0.3s ease; + color: inherit; + } + + .history-item-link .history-item { + cursor: pointer; + } + + .history-item-link:hover .history-item { + transform: translateY(-4px); + box-shadow: 0 12px 35px rgba(33, 150, 243, 0.35); + background: linear-gradient(135deg, #c5dff8 0%, #a5d6fd 100%); + border-color: rgba(33, 150, 243, 0.4); + } + + /* Clickable League History Item Links */ + .league-history-item-link { + display: block; + cursor: pointer; + transition: all 0.3s ease; + color: inherit; + } + + .league-history-item-link .league-history-item { + cursor: pointer; + } + + .league-history-item-link:hover .league-history-item { + transform: translateY(-4px); + box-shadow: 0 12px 35px rgba(156, 39, 176, 0.35); + background: linear-gradient(135deg, #d1a4e0 0%, #c878d8 100%); + border-color: rgba(156, 39, 176, 0.3); + } + .history-info { flex: 1; } @@ -462,6 +504,9 @@ font-size: 0.75rem; font-weight: bold; color: #0d47a1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .history-score { @@ -742,6 +787,12 @@ + +