.l2-enchants-rank-container {
    margin: 20px 0;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.l2-enchants-rank-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 auto;
    min-width: 700px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

/* Cabeçalho da tabela */
.l2-enchants-rank-table thead th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(185, 152, 46, 0.4), rgba(185, 136, 46, 0.2));
    position: relative;
}

.rank-header {
    width: 80px;
}

.char-header {
    width: 150px;
}

.item-header {
    width: auto;
    min-width: 300px;
}

.enchant-header {
    width: 120px;
}

/* Linhas da tabela */
.l2-enchants-rank-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.1);
}

.rank-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.rank-row:hover {
    background: rgba(171, 185, 46, 0.15) !important;
    transform: translateY(-1px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(183, 185, 46, 0.3);
}

/* Coluna Rank */
.rank-position {
    text-align: center;
    width: 80px;
}

.rank-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.rank-medal {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rank-emoji {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.rank-number {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coluna Character */
.char-name {
    text-align: center;
    width: 150px;
}

.char-content {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Coluna Item */
.item-info {
    text-align: left;
    min-width: 300px;
}

.item-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
}

.item-icon-enchant-container {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(185, 136, 46, 0.4);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.item-icon-enchant {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    border-radius: 6px;
    margin-left: 7px;
}

.item-text {
    flex: 1;
    min-width: 0;
}

.item-name {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
}

/* Coluna Enchant */
.enchant-level {
    text-align: center;
    width: 120px;
}

.enchant-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.enchant-value {
    font-size: 16px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6), 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.25), rgba(0, 255, 0, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 0, 0.4);
    box-shadow: 0 2px 4px rgba(0, 255, 0, 0.2);
    min-width: 50px;
    display: inline-block;
}

/* Responsividade */
@media (max-width: 768px) {
    .l2-enchants-rank-container {
        padding: 5px;
    }

    .l2-enchants-rank-table {
        min-width: 600px;
        font-size: 12px;
    }

    .l2-enchants-rank-table thead th {
        padding: 10px 5px;
        font-size: 12px;
    }

    .l2-enchants-rank-table tbody td {
        padding: 8px 5px;
    }

    .item-display {
        gap: 8px;
        padding: 3px;
    }

    .item-icon-enchant-container {
        width: 35px;
        height: 35px;
    }

    .item-icon-enchant {
        width: 28px;
        height: 28px;
    }

    .item-name {
        font-size: 12px;
    }

    .enchant-value {
        font-size: 14px;
        padding: 4px 8px;
    }

    .rank-medal {
        width: 24px;
        height: 24px;
    }

    .rank-emoji {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .l2-enchants-rank-table {
        min-width: 500px;
        font-size: 11px;
    }

    .rank-header {
        width: 60px;
    }

    .char-header {
        width: 100px;
    }

    .item-header {
        min-width: 200px;
    }

    .enchant-header {
        width: 80px;
    }

    .item-display {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .item-icon-enchant-container {
        width: 30px;
        height: 30px;
        margin: 0 auto;
    }

    .item-icon-enchant {
        width: 24px;
        height: 24px;
    }

    .item-name {
        font-size: 10px;
        text-align: center;
    }

    .enchant-value {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* Estilos para as diferentes grades */
.grade-s-style {
    background-color: rgba(255, 215, 0, 0.1);
    /* Dourado claro */
}

.grade-a-style {
    background-color: rgba(192, 0, 0, 0.1);
    /* Vermelho claro */
}

.grade-b-style {
    background-color: rgba(128, 0, 128, 0.1);
    /* Roxo claro */
}

.grade-c-style {
    background-color: rgba(0, 0, 255, 0.1);
    /* Azul claro */
}

.grade-d-style {
    background-color: rgba(0, 128, 0, 0.1);
    /* Verde claro */
}