.area-summary-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0;
    margin-bottom: 2rem;
    margin-top: 3rem;
    overflow: hidden;
}

.area-summary-title {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.area-summary-table-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .area-summary-table-container {
        grid-template-columns: 1fr 1fr;
    }
}

.area-summary-table {
    margin-bottom: 0;
    font-size: 0.9rem;
    table-layout: fixed;
    width: 100%;
    margin: 0;
}

.area-summary-table tbody {
    padding: 1rem;
}

.area-summary-table thead {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.area-summary-table thead th {
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    word-wrap: break-word;
    color: white !important;
    background-color: var(--primary-color) !important;
}

.area-summary-table tbody td {
    padding: 0.5rem;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.area-summary-name {
    width: 15%;
    font-weight: bold;
    white-space: normal;
}

.area-summary-desc {
    width: 30%;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.4;
}

.area-summary-link {
    width: 10%;
    text-align: center;
    white-space: nowrap;
}

.area-summary-table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    height: fit-content;
}

@media (max-width: 991px) {
    .area-summary-table {
        table-layout: auto;
        border-collapse: collapse;
        width: 100%;
    }

    .area-summary-table tbody tr {
        display: table-row;
    }

    .area-summary-table tbody td {
        display: table-cell;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .area-summary-name {
        width: auto;
        font-weight: bold;
        font-size: 0.9rem;
    }

    .area-summary-desc {
        width: auto;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .area-summary-link {
        width: auto;
        text-align: center;
    }

    .area-summary-table-right thead {
        display: none;
    }

    .area-summary-table-right tbody tr:last-child {
        display: none;
    }
}

/* Card header styles (moved from global style.css) */
.card-header {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-color);
    padding: 1rem 1.25rem;
}

.card-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    display: inline;
}

.card-header .text-muted {
    color: #6c757d;
}

/* --- 區域卡片樣式 (AreaCard) --- */
.area-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    overflow-x: auto;
}

/* EV 值高亮 */
.ev-value {
    font-weight: 600;
}

.ev-value.ev-high {
    color: var(--success-color);
}

.ev-value.ev-zero {
    color: #ccc;
}

/* --- 寶可夢表格樣式 (PokemonTable) --- */
.pokemon-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 16px;
    background: white;
}

.pokemon-table thead {
    background-color: var(--primary-color);
    color: white;
}

.pokemon-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.pokemon-table th:hover {
    background-color: #0052a3;
}

.pokemon-table th.sortable::after {
    content: " ⇅";
    opacity: 0.5;
    font-size: 0.8em;
}

.pokemon-table th.sort-asc::after {
    content: " ▲";
    opacity: 1;
}

.pokemon-table th.sort-desc::after {
    content: " ▼";
    opacity: 1;
}

.pokemon-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.pokemon-table tbody tr:hover {
    background-color: #f8f9fa;
}

.pokemon-table td {
    padding: 10px 8px;
    text-align: center;
}

.pokemon-table td:first-child {
    text-align: left;
}

/* --- 其它BOSS寶可夢折疊樣式 --- */
.pokemon-table__separator {
    height: 12px;
    background: linear-gradient(to bottom, transparent, #f0f0f0);
}

.pokemon-table__separator td {
    border: none;
    padding: 0;
}

.pokemon-table__toggle-row {
    background-color: #f9f9f9;
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.pokemon-table__toggle-row td {
    padding: 0;
}

.pokemon-table__toggle-btn {
    width: 100%;
    padding: 12px 16px;
    background-color: #f9f9f9;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pokemon-table__toggle-btn:hover {
    background-color: #f0f0f0;
    color: #0052a3;
}

.pokemon-table__toggle-btn:active {
    background-color: #e8e8e8;
}


.pokemon-table__boss-row {
    background-color: #fff3cd !important;
}

.pokemon-table__boss-row:hover {
    background-color: #ffe8a0 !important;
}


/* ========================================
   多語言優化樣式
   ======================================== */
html[data-lang="en"] .pokemon-table th,
html[data-lang="en"] .pokemon-table td {
    padding: 10px 6px;
    font-size: 0.95rem;
}

html[data-lang="ja"] .pokemon-table th,
html[data-lang="ja"] .pokemon-table td {
    padding: 11px 7px;
}