
.container { max-width: 1200px; margin: auto; }
h1 { color: #3b82f6; text-align: center; }

/* Zone de Paste */
.import-zone { background: #1e293b; padding: 20px; border-radius: 10px; margin-bottom: 30px; border: 1px dashed #3b82f6; }
textarea { width: 100%; background: #0f172a; color: #10b981; border: 1px solid #334155; border-radius: 5px; padding: 10px; font-family: monospace; }

/* Infos Globales */
.team-header-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
input, select, textarea { padding: 10px; border-radius: 5px; border: 1px solid #334155; background: #1e293b; color: white; width: 100%; box-sizing: border-box; }

/* Grille des 6 Pokémon */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.pokemon-card { background: #1e293b; padding: 15px; border-radius: 10px; border-top: 5px solid #3b82f6; position: relative; }
.pokemon-card h3 { margin-top: 0; color: #60a5fa; border-bottom: 1px solid #334155; padding-bottom: 10px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; font-size: 0.8rem; }
.moves-group { margin-top: 15px; display: grid; gap: 5px; }

.legality-badge { font-size: 0.7rem; background: #f59e0b; color: black; padding: 2px 5px; border-radius: 3px; display: none; margin-left: 10px; }

.btn { background: #3b82f6; color: white; border: none; padding: 12px 25px; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; margin-top: 20px; }
.btn:hover { background: #2563eb; }
.btn-import { background: #10b981; margin-top: 10px; }




/* --- NEW CSS FOR STAT BARS & ICONS --- */
.stat-format-zone {
    background: rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    margin-bottom: 20px;
}

.stats-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-container.classic-mode {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    width: 35px;
    font-weight: bold;
    color: #cbd5e1;
}

.stat-input {
    width: 70px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #fff;
    text-align: center;
}

.champion-bar-wrap {
    flex-grow: 1;
    height: 24px;
    background-color: #334155; 
    border-radius: 4px;
    overflow: hidden;
    display: none; 
}

.champion-bar-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        to right,
        #f59e0b, 
        #f59e0b 6px,
        transparent 6px,
        transparent 8px
    );
    transition: width 0.2s ease-in-out;
}

.stat-total-display {
    text-align: right;
    font-size: 0.9rem;
    font-weight: bold;
    color: #94a3b8;
    margin-top: 5px;
}

/* Pokemon & Item Sprite Layout */
.sprite-container {
    position: relative; /* Added relative positioning */
    background: rgba(0,0,0,0.2); 
    border-radius: 8px; 
    height: 100px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 10px; 
    border: 1px solid #334155;
}

.item-icon-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    border: 2px solid #64748b;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.item-icon-badge img {
    max-width: 24px;
    max-height: 24px;
}