/* ===== BATTLE PASS CSS ===== */

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Tooltip styles */
.battlepass-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Animation cho card */
.level-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hiệu ứng hover cho card */
.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Style cho nút VIP */
.vip-glow {
    position: relative;
    overflow: hidden;
}

.vip-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9800, #ff5722, #ff9800, #ff5722);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: glow 2s linear infinite;
}

@keyframes glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .page-title h1 {
        font-size: 20px;
    }
    
    .page-title .subtitle {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .level-number {
        font-size: 20px;
    }
    
    .reward-item {
        padding: 5px;
        font-size: 11px;
    }
    
    .reward-item img {
        width: 30px;
        height: 30px;
    }
}

/* ===== THÊM STYLE CHO JAVASCRIPT ===== */

/* Tooltip */
.tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
}

.tooltip-row i {
    color: #4fc3f7;
    width: 16px;
    text-align: center;
}

.tooltip-row.vip-notice {
    color: #ff9800;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-row.vip-notice i {
    color: #ff9800;
}

/* Badge VIP trên level card */
.vip-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vip-level-badge i {
    font-size: 10px;
}

/* Status badges */
.level-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin: 8px 0;
    text-align: center;
    width: 100%;
}

.status-completed {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.status-partial {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.status-available {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.status-unlocked {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.status-locked {
    background: linear-gradient(135deg, #757575, #616161);
    color: white;
}

/* Level info */
.level-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #b0bec5;
}

.info-row i {
    color: #4fc3f7;
    width: 16px;
    text-align: center;
}

.info-row:last-child {
    margin-bottom: 0;
}

/* Claimed badge */
.claimed-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* VIP item badge */
.vip-item-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff9800;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    z-index: 5;
}

/* VIP currency */
.vip-currency {
    border: 2px solid #ff9800;
    position: relative;
}

.vip-currency::after {
    content: 'VIP';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9800;
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* No rewards */
.no-rewards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    color: #90caf9;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px dashed rgba(144, 202, 249, 0.3);
}

.no-rewards i {
    font-size: 16px;
}

/* VIP action separator */
.vip-action-separator {
    text-align: center;
    margin: 8px 0;
    color: #90caf9;
    font-size: 11px;
    position: relative;
}

.vip-action-separator::before,
.vip-action-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(144, 202, 249, 0.3);
}

.vip-action-separator::before {
    left: 0;
}

.vip-action-separator::after {
    right: 0;
}

/* Button states */
.btn-claimed {
    background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
    cursor: default !important;
}

.btn-locked {
    background: linear-gradient(135deg, #757575, #616161) !important;
    cursor: not-allowed !important;
}

.btn-no-rewards {
    background: linear-gradient(135deg, #9e9e9e, #757575) !important;
    cursor: not-allowed !important;
}

.btn-no-vip {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    position: relative;
    cursor: pointer !important;
}

.btn-no-vip:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

.btn-error {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    cursor: not-allowed !important;
}

/* Level tooltip */
.level-tooltip {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

.level-card:hover .level-tooltip {
    opacity: 1;
    bottom: -15px;
}

/* Animation cho card */
.level-card.animated {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VIP active state */
.vip-active {
    color: #ff9800 !important;
    font-weight: 700;
}

.vip-active small {
    color: #ffcc80;
    font-size: 12px;
}

/* Progress description */
#progressDescription {
    font-size: 12px;
    color: #90caf9;
    margin-top: 5px;
    text-align: center;
}

/* Filter và Sort controls */
.bp-controls {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.bp-filter-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.bp-filter-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.bp-filter-btn:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
}

.bp-filter-btn.active {
    background: #4fc3f7;
    color: white;
    border-color: #4fc3f7;
}

.bp-sort-select {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    min-width: 150px;
}

.bp-sort-select:focus {
    outline: none;
    border-color: #4fc3f7;
}

/* Action buttons */
.bp-action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.bp-action-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.bp-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.bp-action-btn.vip {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.bp-action-btn.vip:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.bp-action-btn.info {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.bp-action-btn.info:hover {
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bp-controls {
        flex-direction: column;
    }
    
    .bp-filter-tabs {
        justify-content: center;
    }
    
    .bp-action-buttons {
        justify-content: center;
    }
    
    .bp-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 150px;
    }
    
    .level-tooltip {
        display: none;
    }
}

@media (max-width: 576px) {
    .bp-filter-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .bp-sort-select {
        min-width: 120px;
        font-size: 12px;
    }
    
    .bp-action-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Control Panel */
.bp-controls {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
}

.bp-filter-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.bp-filter-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.bp-filter-btn:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
}

.bp-filter-btn.active {
    background: #4fc3f7;
    color: white;
    border-color: #4fc3f7;
}

.bp-sort-select {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    min-width: 150px;
}

.bp-sort-select:focus {
    outline: none;
    border-color: #4fc3f7;
}

/* Action Buttons */
.bp-action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bp-filter-tabs {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .bp-sort-select {
        order: 2;
        width: 100%;
        margin-bottom: 10px;
    }
    
    #levelRangeSelect {
        order: 3;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .bp-action-buttons {
        order: 4;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .bp-filter-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .bp-sort-select {
        min-width: 120px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .bp-action-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

.battlepass-tooltip {
    /* Giữ nguyên các thuộc tính cũ và thêm */
    transition: opacity 0.1s ease, transform 0.1s ease;
    pointer-events: none; /* Quan trọng: cho phép chuột đi xuyên qua tooltip */
}

/* Thêm hiệu ứng mượt mà hơn */
@keyframes tooltipFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(5px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* ===== NOTIFLIX REPORT CUSTOMIZATION - CẢI THIỆN HIỂN THỊ ===== */
.notiflix-report-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px) !important;
}

.notiflix-report-content.with-animation.nx-fade {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    padding: 25px 30px !important;
    max-width: 600px !important;
    width: 90% !important;
    animation: reportFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif !important;
}

@keyframes reportFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notiflix-report-title {
    color: #4fc3f7 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid rgba(79, 195, 247, 0.2) !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.notiflix-report-message {
    color: #e0e0e0 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    text-align: left !important;
    padding: 0 10px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    word-wrap: break-word !important;
    white-space: pre-line !important;
    margin-bottom: 25px !important;
}

/* Custom scrollbar for report message */
.notiflix-report-message::-webkit-scrollbar {
    width: 6px !important;
}

.notiflix-report-message::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
}

.notiflix-report-message::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5) !important;
    border-radius: 10px !important;
}

.notiflix-report-message::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.8) !important;
}

/* Styling for HTML content in report */
.notiflix-report-message strong {
    color: #4fc3f7 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin: 15px 0 8px 0 !important;
    font-size: 15px !important;
}

.notiflix-report-message ul,
.notiflix-report-message ol {
    margin: 10px 0 15px 20px !important;
    padding: 0 !important;
}

.notiflix-report-message li {
    margin-bottom: 8px !important;
    position: relative !important;
    padding-left: 5px !important;
}

.notiflix-report-message li:before {
    content: "•" !important;
    color: #4fc3f7 !important;
    font-weight: bold !important;
    display: inline-block !important;
    width: 1em !important;
    margin-left: -1em !important;
}

.notiflix-report-message small {
    color: #90caf9 !important;
    font-size: 13px !important;
    display: block !important;
    margin-top: 15px !important;
    padding: 10px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    border-left: 3px solid #4fc3f7 !important;
}

.notiflix-report-message br {
    margin-bottom: 8px !important;
    display: block !important;
    content: "" !important;
}

/* Button styling */
.notiflix-report-button {
    background: linear-gradient(135deg, #4fc3f7, #2196f3) !important;
    color: white !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2) !important;
    min-width: 140px !important;
}

.notiflix-report-button:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3) !important;
}

.notiflix-report-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.2) !important;
}

/* VIP specific report styling */
.notiflix-report-content[style*="rgb(255, 152, 0)"] .notiflix-report-button {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2) !important;
}

.notiflix-report-content[style*="rgb(255, 152, 0)"] .notiflix-report-button:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00) !important;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notiflix-report-content.with-animation.nx-fade {
        padding: 20px !important;
        margin: 10px !important;
        width: 95% !important;
    }
    
    .notiflix-report-title {
        font-size: 19px !important;
        margin-bottom: 15px !important;
    }
    
    .notiflix-report-message {
        font-size: 14px !important;
        padding: 0 5px !important;
        max-height: 50vh !important;
    }
    
    .notiflix-report-button {
        padding: 10px 25px !important;
        font-size: 14px !important;
        min-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .notiflix-report-content.with-animation.nx-fade {
        padding: 15px !important;
    }
    
    .notiflix-report-title {
        font-size: 17px !important;
    }
    
    .notiflix-report-message {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
    }
}

/* Thêm vào file CSS của Battle Pass */
.bp-action-btn a {
    color: white !important;
    text-decoration: none !important;
}

.bp-action-btn a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Hoặc cụ thể hơn cho button shop */
#btnShopBP a {
    color: white !important;
    text-decoration: none !important;
}

#btnShopBP a:hover {
    color: white !important;
    text-decoration: underline !important;
    opacity: 0.9;
}