/* Popup System Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Simple Test Popup - Basic Centering */
.test-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 99999;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.test-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Popup System Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, 
        rgba(20, 20, 40, 0.95) 0%,
        rgba(40, 40, 60, 0.95) 50%,
        rgba(60, 60, 80, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    margin: 0 auto !important;
    position: relative !important;
}

.popup-overlay .popup-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.7) !important;
    margin: 0 !important;
}

.popup-content.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    }
    50% { 
        text-shadow: 0 4px 20px rgba(255, 255, 255, 0.6);
    }
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 15px;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

.popup-body {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.popup-body h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.popup-body p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.popup-body ul {
    list-style: none;
    padding: 0;
}

.popup-body li {
    margin-bottom: 12px;
    padding: 12px 15px;
    position: relative;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.popup-body li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.popup-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #4ade80;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .popup-content {
        width: 95%;
        padding: 30px;
        transform: scale(0.7) translateY(30px);
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
    
    .popup-body {
        max-height: 300px;
        font-size: 0.9rem;
    }
    
    .popup-body li {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
}
