diff --git a/__pycache__/extensions.cpython-312.pyc b/__pycache__/extensions.cpython-312.pyc index 0d062a0..823d716 100644 Binary files a/__pycache__/extensions.cpython-312.pyc and b/__pycache__/extensions.cpython-312.pyc differ diff --git a/__pycache__/models.cpython-312.pyc b/__pycache__/models.cpython-312.pyc index f114c69..4b21baa 100644 Binary files a/__pycache__/models.cpython-312.pyc and b/__pycache__/models.cpython-312.pyc differ diff --git a/__pycache__/seed.cpython-312.pyc b/__pycache__/seed.cpython-312.pyc index 4e4b94e..7561a58 100644 Binary files a/__pycache__/seed.cpython-312.pyc and b/__pycache__/seed.cpython-312.pyc differ diff --git a/instance/team_tryouts.db b/instance/team_tryouts.db index b3442d8..bec2e21 100644 Binary files a/instance/team_tryouts.db and b/instance/team_tryouts.db differ diff --git a/routes/__pycache__/auth.cpython-312.pyc b/routes/__pycache__/auth.cpython-312.pyc index 8e3afc5..ad1c4d8 100644 Binary files a/routes/__pycache__/auth.cpython-312.pyc and b/routes/__pycache__/auth.cpython-312.pyc differ diff --git a/routes/__pycache__/evaluations.cpython-312.pyc b/routes/__pycache__/evaluations.cpython-312.pyc index a1629ad..4c53e91 100644 Binary files a/routes/__pycache__/evaluations.cpython-312.pyc and b/routes/__pycache__/evaluations.cpython-312.pyc differ diff --git a/routes/__pycache__/main.cpython-312.pyc b/routes/__pycache__/main.cpython-312.pyc index 64de34a..23d733c 100644 Binary files a/routes/__pycache__/main.cpython-312.pyc and b/routes/__pycache__/main.cpython-312.pyc differ diff --git a/routes/__pycache__/matches.cpython-312.pyc b/routes/__pycache__/matches.cpython-312.pyc index bb58558..1f27da0 100644 Binary files a/routes/__pycache__/matches.cpython-312.pyc and b/routes/__pycache__/matches.cpython-312.pyc differ diff --git a/routes/__pycache__/teams.cpython-312.pyc b/routes/__pycache__/teams.cpython-312.pyc index e2017e9..b9a27bd 100644 Binary files a/routes/__pycache__/teams.cpython-312.pyc and b/routes/__pycache__/teams.cpython-312.pyc differ diff --git a/routes/__pycache__/tryouts.cpython-312.pyc b/routes/__pycache__/tryouts.cpython-312.pyc index 8bbbef8..958c08e 100644 Binary files a/routes/__pycache__/tryouts.cpython-312.pyc and b/routes/__pycache__/tryouts.cpython-312.pyc differ diff --git a/routes/__pycache__/users.cpython-312.pyc b/routes/__pycache__/users.cpython-312.pyc index 8236a59..5d58f5b 100644 Binary files a/routes/__pycache__/users.cpython-312.pyc and b/routes/__pycache__/users.cpython-312.pyc differ diff --git a/static/css/style.css b/static/css/style.css index 65fda10..2accf6f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1171,6 +1171,44 @@ a:hover { color: var(--primary-dark); } color: var(--gray-600); } +/* Dark mode styles for time blocks */ +[data-theme="dark"] .merged-disponibility-time-block.high-availability { + background: #10b981; + color: white; + border-color: #10b981; +} + +[data-theme="dark"] .merged-disponibility-time-block.medium-availability { + background: #f59e0b; + color: white; + border-color: #f59e0b; +} + +[data-theme="dark"] .merged-disponibility-time-block.low-availability { + background: #374151; + color: #9ca3af; + border-color: #4b5563; +} + +[data-theme="dark"] .merged-disponibility-time-block.selected { + background: #10b981; + color: white; + border-color: #10b981; + box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5); +} + +[data-theme="dark"] .merged-disponibility-time-block { + background: #374151; + color: #e5e7eb; + border-color: #4b5563; +} + +[data-theme="dark"] .merged-disponibility-time-block:hover { + background: #4b5563; + transform: scale(1.05); + box-shadow: var(--shadow-md); +} + .merged-disponibility-count { position: absolute; top: 2px; @@ -1180,6 +1218,39 @@ a:hover { color: var(--primary-dark); } opacity: 0.8; } +/* Player pool styles for match creation */ +[data-theme="dark"] .available-players-pool .player-item { + background: #065f46; + border-color: #10b981; +} + +[data-theme="dark"] .available-players-pool .player-item.available { + background: #065f46; + border-color: #10b981; +} + +[data-theme="dark"] .available-players-pool .player-item.unavailable { + background: #374151; + border-color: #4b5563; + opacity: 0.6; +} + +[data-theme="dark"] .available-players-pool .player-item:hover { + background: var(--primary); + color: white; + border-color: var(--primary); +} + +[data-theme="dark"] .team-selection .player-item { + background: var(--bg-tertiary); + color: var(--text-primary); +} + +[data-theme="dark"] .team-selection .player-item:hover { + background: var(--primary); + color: white; +} + .merged-disponibility-selected-display { display: flex; align-items: center; diff --git a/templates/pages/create_match.html b/templates/pages/create_match.html index 6bf2b72..acaed23 100644 --- a/templates/pages/create_match.html +++ b/templates/pages/create_match.html @@ -231,12 +231,22 @@ margin: 5px 0; background: var(--success-light); border-radius: 6px; - cursor: pointer; font-size: 14px; + border: 1px solid var(--border-color); } .available-players-pool .player-item:hover { - background: var(--success-color); + background: var(--primary); color: white; + border-color: var(--primary); +} +.available-players-pool .player-item.available { + background: var(--success-light); + border-color: var(--success); +} +.available-players-pool .player-item.unavailable { + background: var(--gray-100); + border-color: var(--gray-300); + opacity: 0.6; } .player-item { display: flex; @@ -250,6 +260,23 @@ .player-item .remove-btn:hover { opacity: 1; } +.player-actions { + display: flex; + gap: 5px; +} +.player-actions .btn { + padding: 4px 8px; + font-size: 12px; +} +.player-name { + flex: 1; +} +.team-selection .player-actions { + display: none; +} +.team-selection .player-item:hover .remove-btn { + opacity: 1; +}