/* APN Status Check Widget */
.apn-status-widget {
    margin: 1.5em 0 2em 0;
    padding: 1.2em 1.5em;
    border-radius: 8px;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apn-status-content {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.apn-status-icon {
    font-size: 2em;
    line-height: 1;
    flex-shrink: 0;
}

.apn-status-text {
    flex: 1;
}

.apn-status-text strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.apn-status-text p {
    margin: 0.3em 0;
    font-size: 0.95em;
}

.apn-status-text code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Roboto Mono', monospace;
}

.apn-status-detail {
    margin-top: 0.8em !important;
    opacity: 0.9;
    font-size: 0.9em !important;
}

.apn-status-note {
    margin-top: 0.8em !important;
    padding: 0.6em 0.8em;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 0.85em !important;
    opacity: 0.85;
    font-style: italic;
}

/* Status: Wird geprüft */
.apn-status-widget.checking {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.apn-status-widget.checking .apn-status-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Status: Erfolgreich */
.apn-status-widget.success {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.apn-status-widget.success .apn-status-icon {
    color: #4caf50;
}

/* Status: Warnung/Nicht erfolgreich */
.apn-status-widget.warning {
    background-color: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}

.apn-status-widget.warning .apn-status-icon {
    color: #ff9800;
}

/* Status: Fehler */
.apn-status-widget.error {
    background-color: #f5f5f5;
    border-left-color: #9e9e9e;
    color: #424242;
}

.apn-status-widget.error .apn-status-icon {
    color: #757575;
}

/* Dark Mode Support */
[data-md-color-scheme="slate"] .apn-status-widget.checking {
    background-color: rgba(33, 150, 243, 0.15);
    color: #90caf9;
}

[data-md-color-scheme="slate"] .apn-status-widget.success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
}

[data-md-color-scheme="slate"] .apn-status-widget.warning {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
}

[data-md-color-scheme="slate"] .apn-status-widget.error {
    background-color: rgba(158, 158, 158, 0.15);
    color: #e0e0e0;
}

[data-md-color-scheme="slate"] .apn-status-text code {
    background: rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .apn-status-note {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media screen and (max-width: 600px) {
    .apn-status-widget {
        padding: 1em;
    }

    .apn-status-content {
        gap: 0.8em;
    }

    .apn-status-icon {
        font-size: 1.5em;
    }

    .apn-status-text strong {
        font-size: 1em;
    }

    .apn-status-text p {
        font-size: 0.9em;
    }
}
