/* Modal Background */
.preview {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.preview-content {
    background: #b10000;
    backdrop-filter: blur(10px);
    margin: 2% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #FAF9F6;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: red;
}

/* Profile Image */
.profile-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.5);
}

.profile-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* List Styling */
.preview-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 auto;
    max-width: 350px;
}

.preview-content ul li {
    background: rgba(0, 0, 0, 0.514);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #FAF9F6;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
