/**
 * eGK Integration Styles für SanLog v2.3
 * Autor: Michael Hoch, DRK Kreisverband Freiburg i.Br.
 */

/* Container */
.egk-button-container {
    margin: 10px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Button */
.egk-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.egk-button:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.egk-button:active {
    transform: translateY(0);
}

.egk-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.egk-icon {
    font-size: 18px;
}

.egk-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
    margin-left: 4px;
}

/* Verfügbar - Grün */
.egk-button.egk-available {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.egk-button.egk-available .egk-status-indicator {
    background: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.egk-button.egk-available:hover {
    background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
    border-color: #218838;
}

/* Nicht verfügbar - Grau */
.egk-button.egk-unavailable {
    border-color: #6c757d;
    color: #6c757d;
}

.egk-button.egk-unavailable .egk-status-indicator {
    background: #6c757d;
}

/* Lesen - Blau mit Animation */
.egk-button.egk-reading {
    border-color: #007bff;
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
}

.egk-button.egk-reading .egk-status-indicator {
    background: #007bff;
    animation: egk-pulse 1s ease-in-out infinite;
}

.egk-button.egk-reading .egk-icon {
    animation: egk-shake 0.5s ease-in-out infinite;
}

/* Fehler - Rot */
.egk-button.egk-error {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.egk-button.egk-error .egk-status-indicator {
    background: #dc3545;
}

/* Status-Nachricht */
.egk-status-message {
    display: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    max-width: 350px;
}

.egk-msg-info {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.egk-msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.egk-msg-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.egk-msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animationen */
@keyframes egk-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes egk-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Responsive */
@media (max-width: 768px) {
    .egk-button {
        padding: 12px 14px;
        font-size: 13px;
    }
}
