/* ==================================
   MOVE LEARN SCREEN (Summary Style)
   ================================== */
#move-learn-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    color: #000;
    padding: 8px;
    box-sizing: border-box;
}

/* Header */
.ml-header {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #444;
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

#ml-title-text {
    color: #c83828;
    width: 100%;
    text-align: center;
}

/* Main Layout: 2 Columns */
.ml-body {
    flex: 1;
    display: flex;
    gap: 8px;
    overflow: hidden;
}

/* Left: Pokemon & Stats */
.ml-left-col {
    width: 96px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ml-sprite-box {
    width: 96px;
    height: 60px;
    /* Slightly taller for alignment */
    background: #f8f8f8;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Mini sprite styling */
}

#ml-poke-sprite {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    image-rendering: pixelated;
}

.ml-types {
    display: flex;
    gap: 4px;
    justify-content: center;
    min-height: 12px;
    margin-bottom: 4px;
}

.ml-stats-container {
    border: 2px solid #444;
    background: #fff;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Ensure it fits nicely */
}

.ml-stats-row {
    font-size: 8px;
    display: flex;
    justify-content: space-between;
    color: #444;
    text-transform: uppercase;
    border-bottom: 1px dotted #ccc;
}

.ml-stats-row:last-child {
    border-bottom: none;
}

/* Right: Current Moves List */
/* ... */
.ml-move-row.new-move {
    background: #d6eaff;
    border-color: #88aaff;
}

.ml-move-row.new-move.selected {
    border: 2px solid #3366cc;
    background: #fff;
}


.ml-new-move-label {
    font-size: 6px;
    color: #888;
    margin-bottom: 2px;
}

#ml-new-move-name {
    font-size: 8px;
    font-weight: bold;
    color: #c83828;
    text-transform: uppercase;
}

/* Right: Current Moves List */
.ml-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ml-move-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    border: 1px solid #e0e0e0;
    font-size: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.1s;
    height: 24px;
    /* Fixed height */
}

.ml-move-row.selected {
    background: #fff8f8;
    border: 2px solid #c83828;
    padding: 3px 5px;
    /* Adjust for thicker border */
}

.ml-move-row.new-move {
    background: #d6eaff;
    border-color: #88aaff;
}

.ml-move-row.new-move.selected {
    background: #d6eaff;
    border-color: #3366cc;
}


.ml-move-row.cancel {
    margin-top: auto;
    justify-content: center;
    font-weight: bold;
    color: #666;
    background: #f0f0f0;
    border-color: #ccc;
}

.ml-move-row.cancel.selected {
    border-color: #c83828;
    background: #fff;
    color: #000;
}

/* Move Row Internals */
.ml-move-name {
    font-weight: bold;
    flex: 1;
    text-align: left;
    margin-left: 8px;
    /* Space from type pill */
}

.ml-move-meta {
    display: flex;
    align-items: center;
    width: 100%;
}


.ml-type-pill {
    width: 34px;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    padding: 2px 0;
    border-radius: 2px;
    font-size: 6px;
    text-transform: uppercase;
}

/* Info Panel (Bottom) */
.ml-info-panel {
    height: 64px;
    margin-top: 8px;
    border-top: 2px solid #444;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ml-info-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 2px;
    font-size: 8px;
}

#ml-info-title {
    font-weight: bold;
    color: #c83828;
}

.ml-info-stats {
    display: flex;
    gap: 8px;
    color: #444;
}

.ml-info-desc {
    font-size: 8px;
    line-height: 1.4;
    color: #222;
}

/* Type Colors */
.ml-type-pill.normal {
    background: #A8A77A;
}

.ml-type-pill.fire {
    background: #EE8130;
}

.ml-type-pill.water {
    background: #6390F0;
}

.ml-type-pill.electric {
    background: #F7D02C;
}

.ml-type-pill.grass {
    background: #7AC74C;
}

.ml-type-pill.ice {
    background: #96D9D6;
}

.ml-type-pill.fighting {
    background: #C22E28;
}

.ml-type-pill.poison {
    background: #A33EA1;
}

.ml-type-pill.ground {
    background: #E2BF65;
}

.ml-type-pill.flying {
    background: #A98FF3;
}

.ml-type-pill.psychic {
    background: #F95587;
}

.ml-type-pill.bug {
    background: #A6B91A;
}

.ml-type-pill.rock {
    background: #B6A136;
}

.ml-type-pill.ghost {
    background: #735797;
}

.ml-type-pill.dragon {
    background: #6F35FC;
}

.ml-type-pill.dark {
    background: #705746;
}

.ml-type-pill.steel {
    background: #B7B7CE;
}

/* Dialog Overlay */
.ml-dialog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.ml-dialog-box {
    background: white;
    border: 4px double #444;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.ml-dialog-text {
    font-size: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ml-dialog-hint {
    font-size: 8px;
    color: #666;
    border-top: 1px dotted #ccc;
    padding-top: 4px;
}