/**
 * Data Transmission Widget Styles
 * Lightweight CSS for the data transmission widget
 * Designed to match the solar-powered website's dark theme
 */

#data-transmission-widget {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(17, 17, 17, 0.9);
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--pico-font-family-monospace), monospace;
    font-size: 11px;
    font-weight: 500;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    user-select: none;
    min-width: 80px;
    text-align: center;
}

#data-transmission-widget:hover {
    opacity: 1;
    background: rgba(17, 17, 17, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Dark theme specific adjustments */
[data-theme="dark"] #data-transmission-widget {
    background: rgba(13, 13, 13, 0.9);
    color: #f0f0f0;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #data-transmission-widget:hover {
    background: rgba(13, 13, 13, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Light theme fallback */
[data-theme="light"] #data-transmission-widget {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] #data-transmission-widget:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #data-transmission-widget {
        bottom: 8px;
        left: 8px;
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* Animation for data updates */
@keyframes data-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#data-transmission-widget.updating {
    animation: data-update 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #data-transmission-widget {
        transition: none;
        animation: none;
    }

    #data-transmission-widget:hover {
        transform: none;
    }

    #data-transmission-widget.updating {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #data-transmission-widget {
        border-width: 2px;
        border-color: currentColor;
        background: rgba(0, 0, 0, 0.95);
        color: white;
    }
}
