/* Zombie Toggle Switch Styles */
.zombie-toggle-container {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
}

.zombie-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zombie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.zombie-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.zombie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.zombie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.zombie-toggle-slider {
    background-color: #4a934a;
}

input:focus+.zombie-toggle-slider {
    box-shadow: 0 0 1px #4a934a;
}

input:checked+.zombie-toggle-slider:before {
    transform: translateX(26px);
}

.zombie-toggle-label {
    font-weight: 500;
    color: #333;
}

.zombie-notice {
    margin-top: 8px;
    padding: 5px 10px;
    background-color: rgba(74, 147, 74, 0.1);
    border-left: 3px solid #4a934a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #333;
}

.zombie-icon {
    font-size: 1.2em;
}

/* When zombie mode is active, add a subtle indicator to the entire page */
body.zombie-mode {
    border-left: 5px solid #4a934a;
}



/* Immortal Effect Modal */
.immortal-effect-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow: hidden;
    /* Prevent scrolling on the modal backdrop */
}

.immortal-effect-modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 51, 0.95), rgba(0, 0, 51, 0.85));
    margin: 1% auto;
    padding: 0;
    border: 1px solid rgba(0, 255, 204, 0.3);
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    border-radius: 15px;
    color: #00FFCC;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
    font-family: 'jost', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 0, 51, 0.9), rgba(0, 0, 51, 0.7));
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'orbitron', sans-serif;
    color: #00FFCC;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    margin: 0;
    letter-spacing: 1px;
    font-size: 1.5em;
}

.close-immortal-modal {
    color: #00FFCC;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
}

.close-immortal-modal:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    /* Prevent scroll events from bubbling to the background */
    overscroll-behavior: contain;
}

.modal-description {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.5;
    color: #b3e6ff;
    background: rgba(0, 255, 204, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #00FFCC;
}

.effect-details-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.effect-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    background: rgba(0, 0, 51, 0.3);
}

.effect-details-table th,
.effect-details-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

.effect-details-table th {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 255, 204, 0.1));
    font-weight: 600;
    color: #00FFCC;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.effect-details-table tbody tr:hover {
    background: rgba(0, 255, 204, 0.05);
}

.lost-count {
    font-size: 0.85em;
    color: #ffb3b3;
}

.rarity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-common {
    background: #666;
    color: white;
}

.rarity-uncommon {
    background: #4CAF50;
    color: white;
}

.rarity-rare {
    background: #2196F3;
    color: white;
}

.rarity-mythic {
    background: #9C27B0;
    color: white;
}

.rarity-ultra {
    background: #F44336;
    color: white;
}

.rarity-change {
    font-size: 0.85em;
    font-weight: 500;
}

.rarity-increase {
    color: #4CAF50;
}

.rarity-decrease {
    color: #ff6b6b;
}

.rarity-same {
    color: #999;
}

.no-changes {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
    .immortal-effect-modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .effect-details-table {
        font-size: 0.8em;
    }

    .effect-details-table th,
    .effect-details-table td {
        padding: 8px 4px;
    }
}

/* Add a zombie indicator to each view when zombie mode is active */
.zombie-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    background-color: rgba(74, 147, 74, 0.1);
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
}

.zombie-indicator .zombie-icon {
    font-size: 1em;
}