﻿

.search-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-group label {
        color: #ff9800;
        font-weight: bold !important;
        font-size: 0.9em;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .filter-group select,
    .filter-group input {
        padding: 12px;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 165, 0, 0.2);
        border-radius: 5px;
        color: #fff;
        font-size: 1em;
        transition: all 0.3s;
    }

        .filter-group select:focus,
        .filter-group input:focus {
            outline: none;
            border-color: #ff9800;
            box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
        }

        .filter-group select option {
            background: #0a1428;
            color: #fff;
        }

.search-button {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

    .search-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
    }
.results-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff9800;
}

    .results-header h2 {
        color: #ff9800;
        font-size: 1.8em;
    }

.results-count {
    color: #aaa;
    font-size: 1.1em;
}

.monster-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 165, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

    .monster-card:hover {
        border-color: #ff9800;
        box-shadow: 0 5px 20px rgba(255, 152, 0, 0.2);
        transform: translateY(-2px);
    }

.monster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334563;
}

.monster-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.monster-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.rank-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    user-select: none;
}

.rank-ur {
    background: linear-gradient(135deg, #d50000, #ff1744);
    box-shadow: 0 0 26px rgba(213, 0, 0, 0.7);
    animation: glow 1.5s infinite alternate;
}
.rank-ssr {
    background: linear-gradient(135deg, #ff6d00, #ff9100);
    box-shadow: 0 0 22px rgba(255, 109, 0, 0.6);
    animation: glow 1.5s infinite alternate;
}
.rank-sr {
    background: linear-gradient(135deg, #7b1fa2, #ab47bc);
    box-shadow: 0 0 18px rgba(171, 71, 188, 0.6);
    animation: glow 1.5s infinite alternate;
}
.rank-r {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    box-shadow: 0 0 14px rgba(66, 165, 245, 0.6);
    animation: glow 1.5s infinite alternate;
}
.rank-n {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    box-shadow: 0 0 10px rgba(102, 187, 106, 0.5);
    animation: glow 1.5s infinite alternate;
}
.rank-all {
    background: linear-gradient(135deg, #eceff1, #b0bec5);
    color: #263238;
    box-shadow: 0 0 10px rgba(176, 190, 197, 0.6);
    animation: glow 1.5s infinite alternate;
}
@keyframes glow {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.3);
    }
}
.monster-details h3 {
    color: #ff9800;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.monster-level {
    color: #aaa;
    font-size: 0.9em;
}

.monster-location {
    background: rgba(255, 152, 0, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    color: #ff9800;
    font-weight: 600;
}

.drops-table {
    width: 100%;
    border-collapse: collapse;
}

    .drops-table thead {
        background: rgba(255, 152, 0, 0.1);
    }

    .drops-table th {
        padding: 12px;
        text-align: left;
        color: #ff9800;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9em;
        letter-spacing: 1px;
        border-bottom: 2px solid #ff9800;
    }

    .drops-table td {
        padding: 15px 12px;
        border-bottom: 1px solid #334563;
    }

    .drops-table tr:hover {
        background: rgba(255, 152, 0, 0.05);
    }

.item-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.rarity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.rarity-ur {
    background: linear-gradient(135deg, #d50000, #ff1744);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-ssr {
    background: linear-gradient(135deg, #ff6d00, #ff9100);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-sr {
    background: linear-gradient(135deg, #7b1fa2, #ab47bc);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-r {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-n {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-all {
    background: linear-gradient(135deg, #eceff1, #b0bec5);
    color: #263238;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-legendary {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.rarity-mythic {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.rarity-epic {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.rarity-rare {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.rarity-uncommon {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.rarity-common {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.drop-rate {
    font-weight: 600;
    font-size: 1.1em;
}

.rate-high {
    color: #4caf50;
}

.rate-medium {
    color: #ff9800;
}

.rate-low {
    color: #f44336;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .monster-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .drops-table {
        font-size: 0.9em;
    }

        .drops-table th,
        .drops-table td {
            padding: 8px;
        }
}

.table-scroll-container {
    max-height: 400px !important; /* Chiều cao tối đa → kích hoạt cuộn */
    overflow-y: auto; /* Cuộn dọc */
    /*overflow-x: auto;  Cuộn ngang nếu bảng rộng */
}

.drops-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* Optional: giữ cột đều */
}

    .drops-table thead th {
        position: sticky; /* Giữ header dính trên cùng khi cuộn */
        top: 0;
        background: rgba(125, 83, 25);
        color: white;
        z-index: 1;
        padding: 12px;
        text-align: center;
    }

    .drops-table tbody td {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

.reset-timer {
    margin-top: 6px;
    text-align: center;
    font-size: 14px;
    color: #ffb74d;
    letter-spacing: 0.4px;
}

    .reset-timer span {
        font-weight: bold;
        color: #ffffff;
        margin: 0 3px;
    }


.is-disabled {
    opacity: 0.45 !important;
    pointer-events: none; /* không cho click */
    filter: grayscale(80%) !important;
    cursor: not-allowed !important;
}