/* My Account Page Styles */
.waveqr-codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.waveqr-codes-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.waveqr-actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    min-width: 32px;
    height: 32px;
    line-height: 1 !important;
}

.button-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.button-icon:hover img {
    opacity: 1;
}

.waveqr-codes-table th,
.waveqr-codes-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.waveqr-codes-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}
.status.active {
    background-color: #d4edda;
    color: #155724;
}
.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}
.status.pending {
    background-color: #fff3cd;
    color: #856404;
}
.not-configured {
    color: #6c757d;
    font-style: italic;
}
.button-small {
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 5px;
}
.waveqr-security-info {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #d1ecf1;
    border-radius: 5px;
}
.waveqr-security-info h4 {
    margin-top: 0;
    color: #0c5460;
}
.waveqr-security-info ul {
    margin: 10px 0 0 20px;
}
.waveqr-security-info li {
    margin-bottom: 5px;
    color: #0c5460;
}

/* WaveQR Modal & Popover - Eigene Ebene (direkt an body) */
.waveqr-modal,
.waveqr-popover {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}
.waveqr-modal *,
.waveqr-popover * {
    box-sizing: border-box;
}

/* Modal Styles - Eigene Ebene über allem */
.waveqr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}
.waveqr-modal.waveqr-modal-open {
    display: flex;
}
.waveqr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}
.waveqr-modal-content {
    position: relative;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    z-index: 1;
}
        .waveqr-modal-header {
    padding: 20px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    position: relative !important;
}
.waveqr-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: #999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 99999999 !important;
    user-select: none !important;
}
.waveqr-modal-close:hover {
    color: #333 !important;
}
.waveqr-modal-body {
    padding: 20px !important;
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
}
        .waveqr-modal-actions {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #dee2e6 !important;
    text-align: right !important;
}
.waveqr-modal-actions .button {
    margin-left: 10px !important;
    z-index: 99999999 !important;
    position: relative !important;
}

        /* Popover Styles - Höherer z-index */
.waveqr-popover {
    position: fixed !important;
    z-index: 99999999 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    padding: 15px !important;
    max-width: 320px !important;
    min-width: 250px !important;
    animation: popoverFadeIn 0.2s ease;
    pointer-events: auto !important;
}
.waveqr-popover::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    left: var(--arrow-left, 20px) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 8px solid white !important;
    z-index: 99999999 !important;
}
.waveqr-popover.waveqr-popover-top::before {
    top: auto !important;
    bottom: -8px !important;
    border-bottom: none !important;
    border-top: 8px solid white !important;
}
.waveqr-popover-content {
    text-align: center;
}
.waveqr-popover-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}
.waveqr-popover-info {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
.waveqr-popover-info strong {
    color: #333;
}

/* Loading State */
.waveqr-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
.waveqr-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 