/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    background: linear-gradient(135deg, #da63c6, #3b3b5a);
    color: #f5f5f5;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

#budget {
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #00ff99;
    font-size: 1.3em;
}

/* Flex table style */
.flex-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: auto;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(145deg, #2a2a3d, #1c1c28);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    gap: 15px;
    transition: transform 0.2s;
}

/* .player-row:hover { transform: translateY(-3px); } */

/* Labels */
.player-label {
    width: 120px;
    font-weight: bold;
    color: #00d8ff;
}

select,
input[type="text"] {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 1em;
}

select {
    background: #3b3b5a;
    color: #fff;
}

select option {
    color: #000;
}

.captain-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #ffd700;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 0, 100, 0.4);
    transition: all 0.3s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 100, 0.6);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input[type="text"] {
    width: 180px;
}

/* Bottom form styling */
.user-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.user-form input {
    border-radius: 8px;
    padding: 10px;
    font-size: 1em;
    border: none;
    width: 200px;
}

.user-form button {
    width: 220px;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

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

#viewLineupsBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 0, 100, 0.4);
    transition: all 0.3s;
}

#viewLineupsBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 100, 0.6);
}

#viewLineupsBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    color: #f5f5f5;
    border-top: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}