.ai-reasoning-box {
    background: #ffffff;
    border: 1px solid #d4edda;
    border-left: 5px solid #28a745;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.1);
    padding: 20px 25px;
    border-radius: 12px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ai-reasoning-box:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.ai-reasoning-header {
    font-size: 18px;
    font-weight: 600;
    color: #155724;
    border-bottom: 1px solid #c3e6cb;
    padding-bottom: 6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-reasoning-header::before {
    content: '';
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, #28a745, #218838);
    border-radius: 2px;
}



    /* Shared Styles */
    .mesg-text, .SLT-small-league-team, .SLT-team-background, .SLT-player-card, .SLT-backup-cards .SLT-player-card {
        font-family: Arial, sans-serif;
        color: white;
        border-radius: 5px;
    }

    /* Notice Message */
    .mesg-text {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        margin-top: 5px;
        padding: 5px;
        font-size: 12px;
    }

    /* Main Container */
    .SLT-small-league-team {
        padding: 5px;
        margin: 0 auto;
        max-width: 450px;
        overflow: hidden;
    }

    /* Team Background */
    .SLT-team-background {
        background-size: cover;
        background-position: center;
        padding: 5px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Role Section */
    .SLT-role-section {
        margin: 0;
        padding: 0;
    }

    /* Players Layout */
    .SLT-role-players {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Player Card */
    .SLT-player-card {
        width: 70px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-align: center;
        padding: 4px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), -2px -2px 4px rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .SLT-player-card p {
        font-size: 10px;
        line-height: 1.2 !Important;
    }

    /* Player Image */
    .SLT-player-image {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-bottom: 4px;
    }

    /* Captain and Vice-Captain Indicators */
    .SLT-player-indicators {
        position: absolute;
        top: 2px;
        right: 2px;
        background-color: white;
        color: black;
        border-radius: 50%;
        width: 12px;
        height: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 7px;
        z-index: 10;
    }

    /* Captain and Vice-Captain Styles */
    .SLT-captain, .SLT-vice-captain {
        padding: 1px 3px;
        font-weight: bold;
        font-size: 10px;
    }

    .SLT-captain {
        background-color: orange;
    }

    .SLT-vice-captain {
        background-color: blue;
    }

    /* Player Name and PP */
    .SLT-player-name {
        font-size: 10px;
        font-weight: bold;
        margin: 1px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .SLT-pp {
        font-size: 8px;
        color: yellow;
        margin-top: 2px;
    }

    .SLT-pp p {
        font-size: 0.5em !important;
        color: #FFFF00 !important;
        margin: 10px 0;
    }

    /* Backup Players Section */
    .SLT-backup-players-container {
        text-align: center;
        margin-top: 4px;
    }

    .SLT-show-backup-players-btn {
        background-color: #4CAF50;
        color: white;
        padding: 4px 8px;
        border: none;
        cursor: pointer;
        font-size: 9px;
        border-radius: 4px;
        margin-top: 4px;
    }

    .SLT-show-backup-players-btn:hover {
        background-color: #45a049;
    }

    .SLT-backup-players {
        display: none;
        margin-top: 6px;
    }

    .SLT-backup-cards {
        display: flex;
        justify-content: center;
        gap: 4px;
    }

    .SLT-backup-cards .SLT-player-card {
        width: 60px;
        padding: 4px;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    }

    .SLT-backup-cards .SLT-player-card img {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
    }

    /* Responsive Adjustments */
    @media screen and (max-width: 480px) {
        .SLT-small-league-team {
            max-width: 100%;
        }

        .SLT-player-card {
            width: 60px;
        }

        .SLT-player-image {
            width: 25px;
            height: 25px;
        }

        .SLT-player-indicators {
            width: 10px;
            height: 10px;
            font-size: 6px;
        }
        
        .SLT-player-card p {
            font-size: 10px !important;
            line-height: 0.4;
        }
    }