/**
 * Device Manager Styles
 * Styling per la gestione dispositivi autorizzati
 */

.device-manager {
    width: 100%;
}

.device-manager-header {
    margin-bottom: 1.5rem;
}

.device-manager-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.device-manager-header p {
    margin: 0;
    font-size: 0.875rem;
}

.devices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.device-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.device-info {
    flex: 1;
}

.device-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.device-name strong {
    font-size: 1rem;
    color: var(--color-text);
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--color-primary);
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.device-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.device-timestamps {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.device-timestamps small {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

.device-actions {
    display: flex;
    gap: 0.5rem;
}

/* No devices state */
.no-devices {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-secondary);
}

.no-devices p {
    margin: 0.5rem 0;
}

.text-muted {
    color: var(--color-text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .device-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .device-actions {
        width: 100%;
    }

    .device-actions .btn {
        width: 100%;
    }

    .device-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}