/* css/popup.css */

/* Container */
.popup-container {
    position: absolute;
    background: white;
    border-radius: 0.5rem;
    /* soft corners */
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    width: 320px;
    /* consistent width */
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    animation: fadeIn 150ms ease-out;
}

/* Slide‐down header */
.popup-header {
    background: linear-gradient(135deg, #6C63FF 0%, #9E77FF 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close button */
.popup-header .close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Body */
.popup-body {
    padding: 1rem;
    background: #fafafa;
    flex: 1;
    /* grow to fill */
    overflow-y: auto;
}

.popup-body .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

/* Footer */
.popup-footer {
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: #6C63FF;
    color: white;
}

.btn-secondary {
    background: white;
    color: #6C63FF;
    border-color: #6C63FF;
}

.btn:hover {
    opacity: 0.9;
}

.node-options-popup {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    /* Optional: spacing between buttons */
    align-items: stretch;
    /* Makes buttons full width if desired */;
}

.node-options-popup button {
    width: 100%;
    /* Optional: makes buttons full width */
    box-sizing: border-box;
}

/* Simple fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

