/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.show {
    display: block;
}

/* Make modal content clickable but background not */
.modal-content {
    pointer-events: auto;
}

/* Modal Content */
.modal-content {
    background-color: rgba(0, 0, 0, 0.85);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    user-select: none;
    position: absolute;
    margin: auto;
    padding: 0;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid;
    /* border-image: linear-gradient(to left, #743ad5, #d53a9d) 1; */
    border-radius: 0.2em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Modal Header */
.modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
}

.window-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.minimize, .close {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.minimize i, .close i {
    font-size: 13px;
}

.minimize:hover, .close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15em;
    font-weight: 500;
}

.close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: white;
}

/* Modal Body */
.modal-body {
    padding: 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    font-weight: 300;
    max-height: 50vh;
}

.modal-body > div {
    margin: 0 0 20px 0;
}

.modal-body > div:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Strong elements */
.modal-body strong {
    color: #743ad5;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
    .modal-content {
        width: 95vw;
        margin: 20px auto;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3em;
    }
} 