.apda-wrapper {
    display: inline-block;
}

.apda-open {
    background: #E8EAF2;
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(31, 115, 183, 0.2);
    transition: transform 120ms 
ease, box-shadow 120ms 
ease, background 120ms 
ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
}

.apda-open:hover {
    background: #1a639b;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(31, 115, 183, 0.25);
    color: white;
}

.apda-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

.apda-modal.apda-hidden {
    display: none !important;
}

.apda-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.apda-modal__dialog {
    position: relative;
    background: #ffffff;
    padding: 22px;
    border-radius: 10px;
    width: min(480px, 92vw);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8edf3;
    z-index: 1;
    animation: apda-pop 150ms ease;
}

.apda-modal__title {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.apda-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

.apda-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.apda-row {
    display: flex;
    gap: 8px;
}

.apda-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cfd9e3;
    border-radius: 6px;
    font-size: 14px;
}

.apda-button {
    background: #1f73b7;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.apda-button:hover {
    background: #1a639b;
}

.apda-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.apda-message {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #0f5132;
}

@keyframes apda-pop {
    from {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
