* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Highlight for the User's Team in the Leaderboard */
.user-row {
    background: rgba(255, 215, 0, 0.15) !important; /* Soft Gold Background */
    border-left: 4px solid #ffd700; /* Solid Gold Bar on the left */
    color: #ffd700; /* Gold Text */
    font-weight: bold;
}
.btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #f0f0f0; /* Light gray background */
  color: #333;             /* Icon color */
  border-radius: 50%;      /* Makes it circular */
  text-decoration: none;   /* Removes underline */
  transition: background-color 0.3s ease;
  border: 1px solid #ccc;
}

/* Hover effect */
.btn-settings:hover {
  background-color: #e0e0e0;
  color: #000;
}

/* Icon size adjustment */
.btn-settings i {
  font-size: 18px;
}

.user-row td {
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

body {
    background: radial-gradient(circle at center, #1e1e2f, #0a0a0c);
    color: #fff;
    display: flex;
    flex-direction: column; /* Stack nav and main content */
    align-items: center;
    min-height: 100vh;
    /* Remove 'overflow: hidden' if it exists */
    overflow-y: auto; 
    overflow-x: hidden;
    padding-bottom: 50px; /* Space at the bottom so cards aren't cut off */
}

/* Ensure the main container doesn't lock height */
.container, .dashboard-body {
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
    height: auto; /* Let content dictate height */
}

/* Smooth scrolling for a better feel */
html {
    scroll-behavior: smooth;
}




h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ff2e2e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.team-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: #ff2e2e;
}

.team-card.selected {
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.3), rgba(255, 122, 0, 0.3));
    border: 2px solid #ff2e2e;
    box-shadow: 0 0 15px rgba(255, 46, 46, 0.5);
}

.team-card img {
    width: 50px;
    height: 35px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-card .ovr {
    position: absolute;
    top: 5px;
    right: 8px;
    font-weight: 900;
    font-size: 1.2rem;
    color: #ffd700;
}

.team-card .name {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #ff2e2e, #ff7a00);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
}

button:not(:disabled) {
    opacity: 1;
}

button:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 46, 46, 0.4);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px;
}

.nav-left { display: flex; align-items: center; gap: 1px; }

.team-badge-container {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ff2e2e;
}

.team-badge-container img { width: 35px; height: auto; }

.nav-ovr {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ffd700;
    color: #000;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.nav-team-info { display: flex; flex-direction: column; }
.team-name-text { font-weight: bold; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.manager-name { font-size: 0.7rem; color: #aaa; }

.nav-right {  font-size: 15px;}
.currency-item {
    background: rgba(0,0,0,0.5);
    padding: 4px 7px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    position: relative;
    height: 80px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.action-card i { font-size: 2rem; margin-bottom: 10px; z-index: 2; }
.action-card span { font-weight: 900; font-size: 1rem; letter-spacing: 2px; z-index: 2; }

.kickoff { background: linear-gradient(45deg, #ff2e2e, #800000); }
.packs { background: linear-gradient(45deg, #7b2ffb, #2d00f7); }
.store { background: linear-gradient(45deg, #00d4ff, #0056b3); }
.event { background: linear-gradient(45deg, #000, #111); }

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 10%; height: 10%;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.action-card:hover { transform: scale(1.05); filter: brightness(1.2); }

.squad-preview {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
}

.mini-squad {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
}

.player-token {
    min-width: 80px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.7rem;
}
.action-card.gameplan {
    background: linear-gradient(45deg, #00ff7f, #008000); 
}
.action-card.gameplan i {
    color: #fff;
}
.action-card.penalties {
    background: linear-gradient(45deg, #991011, #991030); 
}
.action-card.penalties i {
    color: #fff;
}
.action-card.sim {
    background: linear-gradient(45deg, #992310, #993830); 
}
.action-card.sim i {
    color: #fff;
}
/* Specific styling for the TOTS card */
#totsBtn {
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
}

/* The Gold "Event" Glow Effect */
#totsBtn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #1a1a1a 0%, #4a3f00 100%);
}

/* Icon styling */
#totsBtn i {
    color: #ffd700; /* Gold color */
    font-size: 1rem;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Animated Shine Effect */
#totsBtn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}
/* Leaderboard Styling */
.leaderboard-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 100%;
}

.leaderboard-header {
    margin-bottom: 15px;
    color: #ffd700;
    text-align: left;
    font-weight: bold;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.leaderboard-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.leaderboard-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:nth-child(1) { color: #ffd700; font-weight: bold; } /* 1st Place Gold */
.leaderboard-table tr:nth-child(2) { color: #c0c0c0; } /* 2nd Place Silver */
.leaderboard-table tr:nth-child(3) { color: #cd7f32; } /* 3rd Place Bronze */

.rank-num {
    width: 30px;
    font-weight: bold;
}

#totsBtn:hover::after {
    left: 100%;
    top: 100%;
}
a {
    text-decoration: none;
}