/* style.css - Halı Saha Ligi (Premium UI) */

:root {
    --bg-dark: #0f172a;
    /* Deep Blue/Black */
    --bg-glass: rgba(30, 41, 59, 0.7);
    --bg-glass-hover: rgba(51, 65, 85, 0.8);
    --primary-neon: #00ff9d;
    /* Modern Neon Green */
    --secondary-neon: #0ea5e9;
    /* Sky Blue */
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 15px rgba(0, 255, 157, 0.3);
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 157, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 20%);
    color: var(--text-white);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-neon) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-neon) !important;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
    transform: translateY(-1px);
}

/* Cards */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    margin-bottom: 24px;
    color: var(--text-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
    color: var(--primary-neon);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-neon) 0%, #00cc7d 100%);
    border: none;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00ff9d 0%, #00e68a 100%);
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.5);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-neon);
    border: 2px solid var(--primary-neon);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-neon);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

/* Form Controls */
.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-neon);
    color: var(--text-white);
    box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.1);
}

/* Tables */
.table {
    color: var(--text-white);
    border-color: var(--border-glass);
}

.table-dark {
    background-color: transparent;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
}

.table> :not(caption)>*>* {
    background-color: transparent;
    color: var(--text-white);
    border-bottom-color: var(--border-glass);
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 6px;
}

.bg-green {
    background-color: rgba(0, 255, 157, 0.2) !important;
    color: var(--primary-neon) !important;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

/* Auth Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1518605348400-437731df48d4?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
}

.auth-box {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

/* Utilities */
.text-green {
    color: var(--primary-neon) !important;
}

.text-blue {
    color: var(--secondary-neon) !important;
}

.text-muted {
    color: #94a3b8 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
}

/* Fix for dark text in some Bootstrap components */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
}

.list-group-item {
    background: transparent;
    border-color: var(--border-glass);
    color: var(--text-white);
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Football Field Visuals */
.football-field {
    background: linear-gradient(180deg, #2c8f2c 0%, #257825 50%, #2c8f2c 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    position: relative;
    height: 500px;
    /* Fixed height for the field */
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

/* Field Markings */
.field-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
}

.field-center-line {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
}

.field-center-circle {
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.field-penalty-area-top {
    top: 0;
    left: 50%;
    width: 60%;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    transform: translateX(-50%);
}

.field-penalty-area-bottom {
    bottom: 0;
    left: 50%;
    width: 60%;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: none;
    transform: translateX(-50%);
}

/* Player Markers */
.player-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80px;
    z-index: 10;
    transition: all 0.3s ease;
}

.player-marker:hover {
    transform: translate(-50%, -55%) scale(1.1);
    z-index: 20;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: #333;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    display: inline-block;
}

.player-position {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: -2px;
}

/* Formation Positions (Simple Grid System for 7-a-side) */
/* Assuming 1 GK, 2 DEF, 3 MID, 1 FWD (2-3-1) or similar */

/* Goalkeeper */
.pos-gk {
    bottom: 5%;
    left: 50%;
}

/* Defenders (Expanded) */
.pos-def-1 {
    bottom: 25%;
    left: 20%;
}

.pos-def-2 {
    bottom: 25%;
    left: 80%;
}

.pos-def-c {
    bottom: 25%;
    left: 50%;
}

.pos-def-3 {
    bottom: 25%;
    left: 35%;
}

.pos-def-4 {
    bottom: 25%;
    left: 65%;
}

.pos-def-5 {
    bottom: 20%;
    left: 50%;
}

/* Midfielders (Expanded) */
.pos-mid-1 {
    bottom: 50%;
    left: 20%;
}

.pos-mid-2 {
    bottom: 50%;
    left: 80%;
}

.pos-mid-c {
    bottom: 50%;
    left: 50%;
}

.pos-mid-3 {
    bottom: 50%;
    left: 35%;
}

.pos-mid-4 {
    bottom: 50%;
    left: 65%;
}

.pos-mid-5 {
    bottom: 45%;
    left: 50%;
}

/* Forwards (Expanded) */
.pos-fwd-1 {
    bottom: 75%;
    left: 50%;
}

.pos-fwd-l {
    bottom: 70%;
    left: 25%;
}

.pos-fwd-r {
    bottom: 70%;
    left: 75%;
}

.pos-fwd-2 {
    bottom: 70%;
    left: 40%;
}

.pos-fwd-3 {
    bottom: 70%;
    left: 60%;
}

/* Team Colors */
.team-a-marker .player-avatar {
    border-color: var(--primary-neon);
}

.team-b-marker .player-avatar {
    border-color: var(--secondary-neon);
}

/* ==================== FORMATION EDITOR (Drag & Drop) ==================== */

/* Formation Field Container */
.formation-field {
    background: linear-gradient(180deg, #2c8f2c 0%, #257825 50%, #2c8f2c 100%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

/* Field Markings - Center Line */
.field-center-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

/* Field Markings - Center Circle */
.field-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Field Markings - Penalty Area Top */
.field-penalty-area-top {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    transform: translateX(-50%);
}

/* Field Markings - Penalty Area Bottom */
.field-penalty-area-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    transform: translateX(-50%);
}

/* Draggable Player Element */
.draggable-player {
    position: absolute;
    text-align: center;
    width: 80px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    transform: translate(-50%, 50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.draggable-player:hover {
    transform: translate(-50%, 50%) scale(1.05);
    z-index: 20;
}

.draggable-player:active {
    cursor: grabbing;
    transform: translate(-50%, 50%) scale(1.1);
    z-index: 100;
}

/* Player Avatar in Formation Editor */
.draggable-player .player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-neon);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.4), 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-neon);
    overflow: hidden;
    transition: all 0.2s ease;
}

.draggable-player:hover .player-avatar {
    border-color: #00ff9d;
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.6), 0 0 25px rgba(0, 0, 0, 0.4);
}

.draggable-player .player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Name in Formation Editor */
.draggable-player .player-name {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Player Bench Container */
.player-bench {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Players in Bench */
.player-bench .draggable-player {
    position: relative;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-bottom: 12px;
    cursor: grab;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    transition: all 0.2s ease;
}

.player-bench .draggable-player:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: var(--primary-neon);
    transform: none !important;
}

.player-bench .draggable-player .player-avatar {
    margin: 0;
    margin-right: 10px;
    width: 40px;
    height: 40px;
}

.player-bench .draggable-player .player-name {
    flex: 1;
    text-align: left;
    background: transparent;
    padding: 0;
    margin: 0;
    max-width: none;
    box-shadow: none;
    border: none;
    font-size: 13px;
}

/* Dragging State Visual Feedback */
.draggable-player.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Custom Scrollbar for Player Bench */
.player-bench::-webkit-scrollbar {
    width: 6px;
}

.player-bench::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 3px;
}

.player-bench::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 3px;
}

/* Field Markings - Center Line */
.field-center-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

/* Field Markings - Center Circle */
.field-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Field Markings - Penalty Area Top */
.field-penalty-area-top {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    transform: translateX(-50%);
}

/* Field Markings - Penalty Area Bottom */
.field-penalty-area-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    transform: translateX(-50%);
}

/* Draggable Player Element */
.draggable-player {
    position: absolute;
    text-align: center;
    width: 80px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    transform: translate(-50%, 50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.draggable-player:hover {
    transform: translate(-50%, 50%) scale(1.05);
    z-index: 20;
}

.draggable-player:active {
    cursor: grabbing;
    transform: translate(-50%, 50%) scale(1.1);
    z-index: 100;
}

/* Player Avatar in Formation Editor */
.draggable-player .player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-neon);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.4), 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-neon);
    overflow: hidden;
    transition: all 0.2s ease;
}

.draggable-player:hover .player-avatar {
    border-color: #00ff9d;
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.6), 0 0 25px rgba(0, 0, 0, 0.4);
}

.draggable-player .player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Name in Formation Editor */
.draggable-player .player-name {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Player Bench Container */
.player-bench {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Players in Bench */
.player-bench .draggable-player {
    position: relative;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-bottom: 12px;
    cursor: grab;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    transition: all 0.2s ease;
}

.player-bench .draggable-player:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: var(--primary-neon);
    transform: none !important;
}

.player-bench .draggable-player .player-avatar {
    margin: 0;
    margin-right: 10px;
    width: 40px;
    height: 40px;
}

.player-bench .draggable-player .player-name {
    flex: 1;
    text-align: left;
    background: transparent;
    padding: 0;
    margin: 0;
    max-width: none;
    box-shadow: none;
    border: none;
    font-size: 13px;
}

/* Dragging State Visual Feedback */
.draggable-player.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Custom Scrollbar for Player Bench */
.player-bench::-webkit-scrollbar {
    width: 6px;
}

.player-bench::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 3px;
}

.player-bench::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 3px;
}

.player-bench::-webkit-scrollbar-thumb:hover {
    background: #00cc7d;
}

.main-content {
    flex: 1;
}

/* ==================== PAST MATCHES PAGE ==================== */

/* Page Header */
.page-header {
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

.page-header h1 {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Past Match Card */
.past-match-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.past-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

/* Match Date Display */
.match-date {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

/* Team Info */
.team-info {
    padding: 0.5rem;
}

.team-info h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Match Score */
.match-score {
    padding: 1rem;
}

.match-score h2 {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

/* Match Notes */
.match-notes {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-neon) 0%, #00cc7d 100%);
    border-color: var(--primary-neon);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.4);
    border-color: var(--border-glass);
    color: var(--text-muted);
    opacity: 0.5;
}

/* Modal Styling */
.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.modal-header {
    border-bottom: 1px solid var(--border-glass);
}

.modal-footer {
    border-top: 1px solid var(--border-glass);
}

/* Responsive Design */
@media (max-width: 768px) {
    .past-match-card .row {
        text-align: center;
    }

    .match-score h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Attack Direction Arrow */
.attack-arrow {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
}

.attack-arrow i {
    font-size: 2rem;
    display: block;
    animation: arrowBounce 2s ease-in-out infinite;
}

.attack-arrow-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    cursor: grabbing;
}

/* Custom Scrollbar for Player Bench */
.player-bench::-webkit-scrollbar {
    width: 6px;
}

.player-bench::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 3px;
}

.player-bench::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 3px;
}

.player-bench::-webkit-scrollbar-thumb:hover {
    background: #00cc7d;
}

.main-content {
    flex: 1;
}

/* ==================== PAST MATCHES PAGE ==================== */

/* Page Header */
.page-header {
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

.page-header h1 {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Past Match Card */
.past-match-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.past-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

/* Match Date Display */
.match-date {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

/* Team Info */
.team-info {
    padding: 0.5rem;
}

.team-info h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Match Score */
.match-score {
    padding: 1rem;
}

.match-score h2 {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

/* Match Notes */
.match-notes {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-neon) 0%, #00cc7d 100%);
    border-color: var(--primary-neon);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.4);
    border-color: var(--border-glass);
    color: var(--text-muted);
    opacity: 0.5;
}

/* Modal Styling */
.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.modal-header {
    border-bottom: 1px solid var(--border-glass);
}

.modal-footer {
    border-top: 1px solid var(--border-glass);
}

/* Responsive Design */
@media (max-width: 768px) {
    .past-match-card .row {
        text-align: center;
    }

    .match-score h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Attack Direction Arrow */
.attack-arrow {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
}

.attack-arrow i {
    font-size: 2rem;
    display: block;
    animation: arrowBounce 2s ease-in-out infinite;
}

.attack-arrow-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shadow Glow Effect */
.shadow-glow {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

/* ==================== VIDEO PLAYER ==================== */

/* Video Container */
.match-video-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.match-video-container h6 {
    color: var(--primary-neon);
    margin-bottom: 1rem;
}

/* Video Player */
.match-video {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.match-video:focus {
    outline: 2px solid var(--primary-neon);
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

.page-header h1 {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Past Match Card */
.past-match-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.past-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

/* Match Date Display */
.match-date {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

/* Team Info */
.team-info {
    padding: 0.5rem;
}

.team-info h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Match Score */
.match-score {
    padding: 1rem;
}

.match-score h2 {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

/* Match Notes */
.match-notes {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-neon) 0%, #00cc7d 100%);
    border-color: var(--primary-neon);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.4);
    border-color: var(--border-glass);
    color: var(--text-muted);
    opacity: 0.5;
}

/* Modal Styling */
.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.modal-header {
    border-bottom: 1px solid var(--border-glass);
}

.modal-footer {
    border-top: 1px solid var(--border-glass);
}

/* Responsive Design */
@media (max-width: 768px) {
    .past-match-card .row {
        text-align: center;
    }

    .match-score h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Attack Direction Arrow */
.attack-arrow {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
}

.attack-arrow i {
    font-size: 2rem;
    display: block;
    animation: arrowBounce 2s ease-in-out infinite;
}

.attack-arrow-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shadow Glow Effect */
.shadow-glow {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

/* ==================== VIDEO PLAYER ==================== */

/* Video Container */
.match-video-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.match-video-container h6 {
    color: var(--primary-neon);
    margin-bottom: 1rem;
}

/* Video Player */
.match-video {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.match-video:focus {
    outline: 2px solid var(--primary-neon);
    outline-offset: 2px;
}

/* Responsive Video */
@media (max-width: 768px) {
    .match-video {
        max-height: 300px;
    }
}

/* ==================== AUTH PAGE ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: url('https://images.unsplash.com/photo-1529900748604-07564a03e7a6?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay */
    backdrop-filter: blur(5px);
}

.auth-box {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}