/* assets/css/container-exchange.css */

.ce-hidden {
    display: none !important;
}

.ce-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.ce-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ce-modal-dialog {
    position: relative;
    background: #fff;
    max-width: 720px;
    width: 100%;
    margin: 0 1rem;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.ce-modal-inner {
    padding: 24px 24px 20px;
}

.ce-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ce-step h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.ce-field {
    margin-bottom: 12px;
}

.ce-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.ce-field input,
.ce-field select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.ce-two-columns {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.ce-two-columns .ce-field {
    flex: 1;
}

.ce-addresses {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ce-address-block {
    flex: 1 1 0;
    min-width: 220px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    background: #fafafa;
}

.ce-address-block h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
}

.ce-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ce-log {
    max-height: 260px;
    overflow: auto;
    background: #111;
    color: #0f0;
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

/* Klein loading effect */
.ce-step.ce-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.ce-step.ce-loading::after {
    content: 'Laden...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
}
