body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f1115;
    color: #e4e6eb;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #1a1d24;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #1a1d24;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 25px;
}

.navLink {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.navLink:hover {
    color: white;
}

.navLink.active {
    color: #3b82f6;
}


h1 {
    margin: 0;
}

button {
    background: #3b82f6;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #2563eb;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1f232b;
    color: white;
}

.formCard {
    max-width: 500px;
    background: #1a1d24;
    padding: 25px;
    border-radius: 10px;
    margin: 20px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 20px;
    padding: 20px;
}

.teamCard {
    background: #1a1d24;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.teamCard:hover {
    transform: translateY(-4px);
    background: #222733;
}

.teamCard img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}
.teamCard:active {
    transform: scale(0.97);
}

.playerRow {
    background: #14171d;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.teamDetails {
    max-width: 1000px;
    margin: 30px auto;
    background: #1a1d24;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.teamHeader {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #2a2f3a;
    padding-bottom: 20px;
}

.teamHeader img {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    background: #111;
}

.teamInfo h2 {
    margin: 0;
    font-size: 28px;
}

.teamInfo p {
    margin-top: 10px;
    color: #aaa;
}

.playersGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.playerCard {
    background: #14171d;
    padding: 20px;
    border-radius: 10px;
    transition: 0.2s;
}

.playerCard:hover {
    background: #1f232b;
    transform: translateY(-3px);
}

.playerCard h4 {
    margin: 0 0 10px 0;
}

.backButton {
    margin-bottom: 20px;
    background: #333;
}

.adminPanel {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a2f3a;
}

.fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.statBox {
    background: #14171d;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.statBox h3 {
    margin: 0;
    font-size: 28px;
}

.captain {
    border: 2px solid gold;
}

.rankBadge {
    background: #3b82f6;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin: 0;
}

.dashboardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dashboardCard {
    background: #1a1d24;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: 0.2s;
}

.dashboardCard:hover {
    transform: translateY(-5px);
}

.matchItem {
    background: #14171d;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
}

select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: #1f232b;
    color: white;
    border: 1px solid #333;
    border-radius: 6px;
}

.matchesSection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.matchCard {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #3b82f6;
    transition: 0.2s;
}

.matchCard:hover {
    transform: translateY(-3px);
}

.matchCard.upcoming {
    border-color: #f59e0b;
}

.matchCard.finished {
    border-color: #10b981;
}

.matchTeams {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.matchMeta {
    margin-top: 8px;
    font-size: 14px;
    color: #aaa;
}

.pagination {
    margin: 15px 0 30px 0;
}

.pageBtn {
    margin-right: 5px;
    padding: 6px 12px;
    background: #2a2a2a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.pageBtn:hover {
    background: #3b82f6;
}

.activePage {
    background: #3b82f6;
}
