/* Center the FPL App Title */
.app-header {
    background: #37003c !important;
    /* Gradient background */
    color: white !important;
    padding: 20px !important;
    text-align: center !important;
    font-family: 'Arial', sans-serif !important;
    /* Clean and modern font */
    border-radius: 10px !important;
    /* Rounded corners */
    margin-bottom: 20px !important;
    /* Space below the header */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important; /* Add a subtle shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.app-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

body {
    background-color: #f4f5f7;
    
}

/* Center the Bench Header */
h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
}

.tab-button.active {
    background: #37003c;
}

/* User ID Search Section */
.user-id-search {
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    border-style: groove;
    border-color: #00a44d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    border-width: 2px;
    border-style: solid;
    border-color: #00a44d;
}

.search-input:focus {
    border-color: #00a44d;
    box-shadow: 0px 0px 4px #37003c;
}

.search-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background-color: #01fc7a;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-width: 2px;
    border-style: outset;
    border-color: #00a44d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease;

}

.search-button:hover {
    color: rgb(255, 255, 255);
    background-color: #1a804b;
}

.search-button:active {
    background-color: #1a804b;
}

/* Formation Field */
.field {
    background: #10a223;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important; /* Add a subtle shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
    border-width: 2px;
    border-style: solid;
    border-color: #000000;
}

.row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.player {
    position: relative;
    width: 100px;
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Doubtful Player */
.player.doubtful {
    background: yellow;
}

/* Injured, Suspended, or Unavailable Player */
.player.injured {
    background: red;
    color: white;
    /* Optional: Make text more readable */
}

.player img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.player .badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #f1c40f;
    /* Gold for Captain */
    color: #000000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
}

.player .vc-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ffafbc;
    /* Blue for Vice Captain */
    color: #000000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
}

.info-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #296dc5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

/* Bench Section */
.bench {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.bench-container {
    background: #0a7a16;
    /* Dark green background */
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto;
    /* Center the container horizontally */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important; /* Add a subtle shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
    border-width: 2px;
    border-style: solid;
    border-color: #000000;
}

.bench-container h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 10px;
    /* Reduce padding above the title */
    margin-bottom: 10px;
    /* Optional: Adjust padding below the title */
    font-family: 'Arial', sans-serif;
}

/* Modal Styling */
.modal-image {
    display: block;
    margin: 0 auto 20px;
    /* Center the image and add spacing below */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* Make the image circular */
    object-fit: cover;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center-align all content horizontally */
    padding: 30px;
    /* Increase padding for more spacing */
    border-radius: 15px;
    max-width: 600px;
    /* Slightly wider modal */
    margin: 50px auto;
    background: linear-gradient(to right, #01fc7a, #01fc7a);
    color: rgb(0, 0, 0);
    position: relative;
    /* Anchor close button to this element */
    box-shadow: 0px 20px 20px 12px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
    border-width: 2px;
    border-style: solid;
    border-color: #000000;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    /* Increase font size for better visibility */
    cursor: pointer;
    z-index: 1000;
}

/* Player Header in Modal */
.player-header {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 30px;
    padding-top: 30px;
}

.player-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 20px;
    object-fit: cover;
}

.player-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

.player-name {
    font-size: 2rem;
    margin: 0;
    margin-bottom: 5px;
}

.player-team {
    font-size: 1.3rem;
    font-style: italic;
    margin-top: 5px;
}

/* Player Stats */
.player-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.player-stats .stat {
    display: flex;
    flex-direction: column;
    /* Stack label and value vertically */
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
}

/* Position Colors */
.player-position {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px;
    width: 80px;
    height: 30px;
    border-radius: 5px;
    color: white;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.player-position.gkp {
    background: #1e90ff;
    /* Blue for Goalkeeper */
}

.player-position.def {
    background: #228b22;
    /* Green for Defender */
}

.player-position.mid {
    background: #9400d3;
    /* Purple for Midfielder */
}

.player-position.fwd {
    background: #ff4500;
    /* Orange for Forward */
}

/* General app header style */
.app-header {
    background-color: #37003c;
    color: white;
    padding: 10px;
    text-align: center;
}

/* Button styles */
.btn-primary {
    background-color: #1E90FF;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    border-width: 2px;
    border-style: outset;
    border-color: #00a44d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1C86EE;
}

/* Filter styles */
.filters {
    margin: 20px auto;
    text-align: center;
}

.filters label {
    margin-right: 10px;
    font-weight: bold;
}

.filters select,
.filters input {
    margin: 0 10px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.filters input {
    width: 80px;
}

/* Navigation bar */
.navbar {
    display: flex;
    justify-content: flex-start;
    padding: 10px 20px;
    background-color: #f4f5f7;
    font-family: 'Arial', sans-serif;
}

.navbar a {
    margin-right: 15px;
    /* padding: 10px 15px; */
    text-decoration: none;
    color: rgb(0, 0, 0);
    background-color: #01fc7a;
    border-radius: 5px;
    font-weight: bold;
}

.navbar a:hover {
    color: rgb(255, 255, 255);
    background-color: #1a804b;
}

/* Update table styles */
/* Update table styles for rounded corners and softer look */
#playersTable {
    width: 100%;
    border-collapse: separate; /* Use separate borders for rounded corners */
    border-spacing: 0; /* Remove spacing between cells */
    margin: 20px auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px; /* Add rounded corners */
    overflow: hidden; /* Ensure content stays inside rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */
}

/* Ensure the header matches the rounded corners */
#playersTable th {
    background-color: #37003c;
    color: white;
    text-transform: uppercase;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

#playersTable tr:last-child td {
    border-bottom: none; /* Remove border at the bottom for the last row */
}

#playersTable td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
}

/* Add hover effect for rows */
#playersTable tbody tr:hover {
    background-color: #f2f2f2;
}

/* Add zebra striping for rows */
#playersTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Filter input styling */
.filters input,
.filters select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}