/* ---------- Base / from earlier ---------- */
* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
}

.wholePage {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px;
}

.information {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
}

/* Left: form card */
.playerAtt {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

#attributeform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.vbox-item { display: flex; flex-direction: column; gap: 6px; }

#attlabel {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.vbox-item input,
.vbox-item select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.vbox-item input:focus,
.vbox-item select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.text-danger { color: #d32f2f; font-size: 0.8rem; }

.button-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.submitatt {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.submitatt:hover { background: #2563eb; }

/* Right: results card */
.optimalTraining {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.futureVurd {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

/* Training plan list */
.trainPlan ul { margin: 0; padding-left: 20px; }
.trainPlan li { font-size: 0.95rem; margin-bottom: 6px; color: #444; }

/* ---------- NEW: Improved player attributes ---------- */

/* Wrapper holding the two columns of new player stats */
.newPlayerAtt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

/* Left and right columns (account for the small class name typo too) */
.newPlayerleft-side,
.newPlayerRight-side {
    display: grid;
    gap: 10px;
}

/* Individual attribute box */
.newattbox {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

/* Optional subtle hover to make it feel alive */
.newattbox:hover {
    border-color: #cfcfcf;
}

/* A small separator before the training plan */
.trainPlan {
    border-top: 1px solid #e8e8e8;
    padding-top: 12px;
    margin-top: 8px;
}

/* ---------- Small visual tweaks ---------- */
.selectatt { appearance: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .information { grid-template-columns: 1fr; }
    #attributeform { grid-template-columns: 1fr; }
    .button-container { justify-content: stretch; }
    .submitatt { width: 100%; }
    .newPlayerAtt { grid-template-columns: 1fr; }
}
