/* === ESTILOS PARA A NOVA MOCHILA DE ITENS (VERSÃO 3 - 3 COLUNAS E TEMA AZUL) === */

/* Paleta de cores Ano Novo Chinês */
@import url(https://fonts.googleapis.com/css?family=Exo+2:400,700,900);

:root {
    --background-color: #8B0000;
    --container-bg: #B22222;
    --sidebar-bg: #8B0000;
    --item-slot-bg: rgba(0,0,0,0.3);
    --item-slot-border: #FFD700;
    --item-slot-selected-bg: rgba(255, 215, 0, 0.1);
    --item-slot-selected-border: #FFD700;
    --text-color: #FFD700;
    --details-text-color: #FFD700;
    --active-category-bg: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    --active-category-text: #FFD700;
    --font-family: 'Exo 2', sans-serif;
}

/* Container principal que envolve toda a mochila */
.item-box-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 70vh;
    min-height: 550px;
    margin: 20px auto;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/seasons/2/bgnew.jpg');
    background-size: cover;
    background-position: center;
    border: 3px solid #FFD700;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    position: relative;
}

/* Coluna Esquerda: Categorias */
.item-box-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/layout/infomenu/bg_1765375861_pattern_2.jpg');
    background-size: auto;
    background-repeat: repeat;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.item-box-sidebar::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 120px;
    height: 200px;
    background: url('../images/seasons/2/balao duplo.png') no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    transform: scaleX(-1);
}

.sidebar-header {
    font-size: 24px;
    font-weight: 900;
    color: #FFD700;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #8B0000, -2px -2px 0 #8B0000, 2px -2px 0 #8B0000, -2px 2px 0 #8B0000, 2px 2px 0 #8B0000, 0 0 20px rgba(255, 215, 0, 0.8);
    margin-bottom: 15px;
    padding-left: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.item-box-sidebar button {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0,0,0,0.4);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    transition: all 0.3s;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    z-index: 1;
}

.item-box-sidebar button:hover {
    background: #FFD700;
    color: #8B0000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateX(5px);
}

.item-box-sidebar button.active {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: #FFD700;
    font-weight: 700;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: translateX(5px);
}

/* Seta amarela no botão ativo */
.arrow {
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #FFD700;
}

/* Área principal que contém a grade e os detalhes */
.item-box-main {
    flex-grow: 1;
    display: flex;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/layout/infomenu/bg_1765375861_pattern_2.jpg');
    background-size: auto;
    background-repeat: repeat;
    border-radius: 15px;
    margin: 10px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.item-box-main::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 200px;
    background: url('../images/seasons/2/balao duplo.png') no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

/* Coluna Central: Grade de Itens (AJUSTE PRINCIPAL) */
.item-grid {
    flex-grow: 1;
    padding: 20px;
    display: grid;
    /* MUDANÇA-CHAVE: Força exatamente 3 colunas */
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 90px;
    gap: 15px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.search-container {
    grid-column: 1 / -1;
    margin-bottom: 15px;
    height: auto;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #FFD700;
    border-radius: 25px;
    font-size: 16px;
    background-color: rgba(0,0,0,0.4);
    color: #FFD700;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.search-input::placeholder {
    color: rgba(255, 215, 0, 0.6);
}

.item-slot {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/layout/infomenu/bg_1765375861_pattern_2.jpg');
    background-size: auto;
    background-repeat: repeat;
    border: 3px solid #FFD700;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: center;
    padding-top: 25px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

#bag-pokeballs .item-slot, #bag-potions .item-slot {
padding: 5px;
}



/* Estilo para o nome do item */
.item-name-grid {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #FFD700;
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    border-radius: 10px;
    padding: 2px 5px;
    text-overflow: ellipsis;
    z-index: 2;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.item-slot:hover {
    transform: scale(1.05);
    border-color: #FFA500;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.item-slot.selected {
    border-color: #FFD700;
    border-width: 4px;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.item-slot img {

   
    object-fit: contain;
    padding: 0 30px;
     max-height: 40%; 
    margin-top: 5px;
}

.item-quantity {
    position: absolute;
    bottom: 5px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 10;
}

.empty-category {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    margin-top: 40px;
}

/* Coluna Direita: Detalhes do Item */
.item-details {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/layout/infomenu/bg_1765375861_pattern_2.jpg');
    background-size: auto;
    background-repeat: repeat;
    border-left: 3px solid #FFD700;
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: #FFD700;
    position: relative;
}

.item-details::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 80px;
    height: 130px;
    background: url('../images/seasons/2/balao duplo.png') no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    transform: scaleX(-1);
}

.item-details::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 80px;
    height: 130px;
    background: url('../images/seasons/2/balao duplo.png') no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.details-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.no-item-selected {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #aaa;
    position: relative;
    z-index: 1;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 20px;
}

.item-details-header {
    text-align: center;
    margin-bottom: 15px;
}

.item-details-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    image-rendering: pixelated;
}

.item-details-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #FFD700;
    word-wrap: break-word;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.item-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 80px;
    flex-grow: 1;
}

.item-info {
    margin-bottom: 20px;
    font-size: 16px;
}

.item-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.action-btn:hover { 
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.action-btn.use { 
    background: rgba(0,0,0,0.4);
    color: #FFD700;
    border: 2px solid #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}
.action-btn.use:hover {
    background: #FFD700;
    color: #8B0000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
.action-btn.sell { 
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: #FFD700;
    border: 2px solid #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}
.action-btn.sell:hover {
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}
.action-btn img { width: 18px; height: 18px; vertical-align: middle; }

/* --- REGRAS DE RESPONSIVIDADE (VERSÃO MOBILE APRIMORADA) --- */
@media (max-width: 850px) {
    .item-box-container {
        flex-direction: column;
        height: auto;
                max-height: 110vh; /* Limita a altura na viewport do celular */
    }

    /* AJUSTE-CHAVE: Barra de categorias com quebra de linha */
    .item-box-sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap; /* Permite que os botões quebrem para a próxima linha */
        justify-content: center; /* Centraliza as linhas de botões */
        padding: 10px 5px; /* Reduz o padding lateral */
        gap: 5px; /* Espaço entre os botões */
        /* REMOVIDO: overflow-x: auto; */
    }
    
    .sidebar-header { display: none; }

    /* AJUSTE-CHAVE: Botões menores e flexíveis */
    .item-box-sidebar button {
        flex-grow: 1; /* Permite que os botões cresçam para preencher o espaço */
        min-width: 120px; /* Largura mínima para cada botão */
        padding: 8px 10px; /* Padding interno menor */
        font-size: 14px; /* Fonte um pouco menor */
        text-align: center; /* Centraliza o texto do botão */
        max-width: 135px;
    }

    .arrow { display: none; }

    .item-box-main {
        flex-direction: column;
        margin: 0 10px 10px 10px;
        min-height: 0; /* Corrige potencial problema de overflow no flexbox */
    }

    .item-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .item-details {
        width: 88%;
        
        height: 370px;
        flex-shrink: 0;
        border-left: none;
        border-top: 2px solid var(--item-slot-border);
        overflow-y: auto;
    }
    
    .item-description { min-height: 60px; }
    .item-details-header img {
    width: 50px;
    height: 50px;}
}

@media (max-width: 480px) {
    /* Em telas muito pequenas, podemos voltar para 2 colunas para não espremer demais */
    .item-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 85px;; 
    }
    .item-slot {
    padding: 0 ;
}
}

/* Estilos do Modal - Estilo do Jogo */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #393939;
    border: 2px solid #00a2ff;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0, 162, 255, 0.2), 0 4px 15px rgba(0,0,0,0.3);
    min-width: 500px;
    max-width: 600px;
    color: #ffffff;
    padding: 20px;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
}

.modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/Regioes/galar.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    filter: saturate(40%) brightness(80%);
}

.modal-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #00dcff;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 220, 255, 0.5);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Seletor de quantidade no modal */
.quantity-selector-modal {
    margin: 15px 0;
    padding: 15px;
    background: rgba(57, 57, 57, 0.8);
    border: 1px solid rgba(0, 220, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.quantity-selector-modal label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #00dcff;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00a2ff;
    background: linear-gradient(135deg, #00a2ff, #0080cc);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 162, 255, 0.3);
}

.quantity-controls button:hover {
    background: linear-gradient(135deg, #00dcff, #00a2ff);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 220, 255, 0.5);
}

.quantity-controls input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #00a2ff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(57, 57, 57, 0.9);
    -moz-appearance: textfield;
    transition: all 0.3s ease;
}

.quantity-controls input:focus {
    outline: none;
    border-color: #00dcff;
    box-shadow: 0 0 10px rgba(0, 220, 255, 0.5);
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.max-info {
    font-size: 12px;
    color: #00dcff;
    text-align: center;
    display: block;
    font-weight: 600;
}

/* Lista de seleção de Pokémon - Grid 3x2 */
.pokemon-selection-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    position: relative;
    z-index: 2;
    max-height: none;
    overflow: visible;
}

.pokemon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(57, 57, 57, 0.8);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: center;
    min-height: 100px;
}

.pokemon-option:hover {
    background: rgba(0, 162, 255, 0.2);
    border-color: #00a2ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.3);
}

.pokemon-option img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 162, 255, 0.3));
}

.pokemon-option span {
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.2;
}

.pokemon-hp {
    font-size: 10px;
    color: #00dcff;
    font-weight: 600;
}

/* Botão cancelar */
.btn-cancel {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: 2px solid #ff4444;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: block;
    margin: 15px auto 0;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}


.sell-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #00a2ff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1d344a;
    background-color: #f7faff;
    -moz-appearance: textfield;
    transition: all 0.3s ease;
}

.quantity-selector input:focus {
    outline: none;
    border-color: #00dcff;
    box-shadow: 0 0 8px rgba(0, 220, 255, 0.3);
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00a2ff;
    background: linear-gradient(135deg, #00a2ff, #0080cc);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 162, 255, 0.3);
}

.quantity-selector button:hover {
    background: linear-gradient(135deg, #00dcff, #00a2ff);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 220, 255, 0.5);
}

/* ESPECIALISTA POKEMON */

/* ==========================================================================
   ESTILOS PARA A PÁGINA DE ESPECIALISTAS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT PRINCIPAL (Container, Sidebar, Main)
   -------------------------------------------------------------------------- */
.specialists-container {
    display: flex;
    width: 100%;
    max-width: 1024px;
    height: 70vh;
    min-height: 550px;
    margin: 20px auto;
    background-color: #2f6690; /* Cor de fundo principal */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
}

.specialists-sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #1d344a;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-header {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    padding-left: 10px;
}

.specialists-sidebar button {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #e0e0e0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.specialists-sidebar button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.specialists-sidebar button.active {
    background-color: #ffc84a;
    color: #1d344a;
    font-weight: 800;
}

.specialists-main {
    flex-grow: 1;
    display: flex;
    background-color: #f7faff;
    border-radius: 15px;
    margin: 10px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   2. COLUNA DO MEIO (Seleção de Time)
   -------------------------------------------------------------------------- */
.pokemon-team-selection {
    width: 250px;
    flex-shrink: 0;
    border-right: 2px solid #d8e2ef;
    display: flex;
    flex-direction: column;
}

.team-header {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #1d344a;
    border-bottom: 2px solid #d8e2ef;
}

.team-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 30px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-member:hover {
    border-color: #ffc84a;
    transform: scale(1.03);
}

.team-member.active {
    border-color: #ffc84a;
    background-color: #fffbeb;
    border-width: 3px;
}

.team-member img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.team-member-info {
    display: flex;
    flex-direction: column;
}

.team-member-info span {
    font-weight: 600;
    color: #333;
}

.team-member-info small {
    color: #777;
}

/* --------------------------------------------------------------------------
   3. COLUNA DA DIREITA (Área de Ação)
   -------------------------------------------------------------------------- */
.specialist-action-area {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    position: relative;
}

.no-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #aaa;
}

.placeholder-icon {
    width: 80px; height: 80px; border-radius: 50%; border: 5px solid #ddd;
    display: flex; justify-content: center; align-items: center;
    font-size: 40px; font-weight: bold; color: #ddd; margin-bottom: 20px;
}

.action-details h3 {
    text-align: center;
    font-size: 24px;
    color: #1d344a;
    margin-top: 0;
}

.action-details p {
    text-align: center;
    color: #667;
    margin-bottom: 30px;
}

.comparison-view {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.pokemon-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pokemon-view img {
    width: 120px;
    height: 120px;
}
.pokemon-view span {
    font-weight: bold;
    color: #555;
}

.arrow-separator {
    font-size: 40px;
    color: #ccc;
    font-weight: bold;
}

.cost-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}
.cost-display img {
    width: 24px;
    height: 24px;
}

.action-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-btn.shiny {
    background-color: #ffc84a;
    color: #1d344a;
}
.action-btn:hover {
    filter: brightness(1.1);
}

.feedback-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-align: center;
}
.feedback-message.green { background-color: #4CAF50; }
.feedback-message.red { background-color: #f44336; }
.feedback-message.blue { background-color: #2196F3; }

/* --------------------------------------------------------------------------
   4. RESPONSIVIDADE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .specialists-container {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
    }
    .specialists-sidebar {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    .specialists-sidebar button {
        flex-shrink: 0;
    }
    .specialists-main {
        flex-direction: column;
    }
    .pokemon-team-selection {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #d8e2ef;
    }
    .team-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
    }
    .team-member {
        flex-direction: column;
        padding: 10px;
        min-width: 100px;
    }
    .team-member img {
        margin-right: 0;
        margin-bottom: 5px;
    }
}


/* === CARD DE INFORMAÇÕES DA MOCHILA === */
.bag-card {
    background: linear-gradient(135deg, rgba(57, 57, 57, 0.95), rgba(29, 52, 74, 0.95));
    border: 2px solid #00a2ff;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px auto;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bag-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bag-card-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.bag-card-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 162, 255, 0.5));
}

.bag-card-info {
    flex: 1;
}

.bag-card-info h3 {
    color: #00dcff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 0 5px rgba(0, 220, 255, 0.5);
}

.bag-card-info p {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.bag-card-progress {
    width: 100%;
    max-width: 300px;
    height: 12px;
    background: rgba(29, 52, 74, 0.8);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 162, 255, 0.3);
}

.bag-card-progress-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 6px;
}

.bag-card-right {
    display: flex;
    align-items: center;
}

.bag-status-ok, .bag-status-warning, .bag-status-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.bag-status-ok {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.bag-status-warning {
    background: rgba(243, 156, 18, 0.2);
    border: 2px solid #f39c12;
    color: #f39c12;
    animation: pulse 2s infinite;
}

.bag-status-full {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-icon {
    font-size: 24px;
    font-weight: bold;
}

.buy-bag-btn {
    margin-top: 5px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00a2ff, #0080cc);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}

.buy-bag-btn:hover {
    background: linear-gradient(135deg, #00dcff, #00a2ff);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.4);
}

@media (max-width: 768px) {
    .bag-card {
        margin: 10px;
        padding: 12px 15px;
    }
    
    .bag-card-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .bag-card-left {
        width: 100%;
    }
    
    .bag-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .bag-card-info h3 {
        font-size: 18px;
    }
    
    .bag-card-progress {
        max-width: 100%;
    }
    
    .bag-card-right {
        width: 100%;
    }
    
    .bag-status-ok, .bag-status-warning, .bag-status-full {
        width: 100%;
        padding: 12px;
    }
}


/* Pokéball Fragmentada */
.item-slot.fragmented {
    position: relative;
    border-color: #ff6b6b7c;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.479), rgba(255, 68, 68, 0.459));
    border-style: dashed
}

.crack-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(255, 68, 68, 0.8) 49%, rgba(255, 68, 68, 0.8) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 68, 68, 0.8) 49%, rgba(255, 68, 68, 0.8) 51%, transparent 52%),
        linear-gradient(135deg, transparent 48%, rgba(255, 68, 68, 0.6) 49%, rgba(255, 68, 68, 0.6) 51%, transparent 52%);
    background-size: 100% 100%, 100% 100%, 50% 50%;
    background-position: center, center, top left;
    pointer-events: none;
    border-radius: 10px;
    opacity: 0.7;
}

.item-slot.fragmented:hover {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.item-slot.fragmented .item-name-grid {
    background-color: rgba(255, 107, 107, 0.9);
    color: white;
}
